GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




Parse error, when publishing on a site with PHP parsing enabled

Click to view RSS...
Author
Posted Sunday, November 5, 2006 - Post #14249
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Important Contributors
Customers
GenoPro version: 2.5.4.0

Last Login: Tuesday, November 14, 2017
Posts: 193, Visits: 4,268
When publishing to a site with php parsing enabled the following error appears:
Parse error: parse error, unexpected T_STRING in home/b/bukolyi/public_html/csaladfa/home.htm on line 1

this is for several .htms.

The cause is in the first line:< ?xml version="1.0" encoding="utf-8"?>, as by default, php as configured by MAMP enables short tag support - so php is trying to interpret everything between < ? ?>.

However, if this line is replaced by < ?php echo '< ?xml version="1.0" encoding="UTF-8"?>';?> - or delete the line itself - the site is OK.

However, I do not know, what is the side effect if this change will be done globally Smile

Note: originally there is no space between < and ? (I had to put one or the forum hides the whole Smile )



Feri


Edited: Sunday, November 5, 2006 by fbukolyi



Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse