Hello,

I am having a strange problem with PHP and I can't really find a proper answer, maybe someone have seen this before and can give me a hint.

I have a series of files (originally developed by another colleague) installed on a server with PHP 4.2.2 and I get this error:

Parse error: parse error, unexpected $ in /var/www/html/donation/installations/gpi/form.inc on line 528

Line 528 is actually the last line on that file, it's an empty line. Tried removing, adding spaces, and the number of lines change, always pointing to the last line. Checking online, I get similar comments from people when braces are unbalanced, i.e. a "while" loop that doesn't have a closing "}". I have checked this file with Zend Studio for correctness and there is no problem, checked every block, all closed. Checked all the included files as well ...

The strange thing as well is that this runs on my laptop, running PHP 4.3.4 and doesn't return any errors. Has anyone seen this? Where can I find the differences in syntax between these two PHP versions, maybe that's the cause...? I also looked at the possibility that it's the "short_open_tag" in the configuration file but it seems like the option is properly set in the httpd.conf file on pluto.greenpeace.com ... I am a bit lost now, any suggestions?

/B

--
Bruno Mattarollo <[EMAIL PROTECTED]>
Head of IT - Greenpeace International
[ http://www.greenpeace.org/ ]

Attachment: PGP.sig
Description: This is a digitally signed message part



Reply via email to