Re: parse error, unexpected $

From: Date: Wed, 11 Feb 2004 10:51:09 +0000
Subject: Re: parse error, unexpected $
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-177363@lists.php.net to get a copy of this message
Hello Raditha and all, Thanks for the replies ... I reviewed all my code with Zend Studio and the syntax was correct everywhere ... so I tried running the application from the command line: $ php donate.php and it worked fine, so looking through the code we saw that there was a "short-tag" in one place and that was the problem since the "short-tags" is off on the server (Apache) as we also process (read/write/etc) XML files ... Anyways, thanks for the replies :) /B On Feb 10, 2004, at 16:38, Raditha Dissanayake wrote:
The line number is misleading the error is generally above the line that's reffered to. try commenting out sections of the code. If you have an IDE it will be able to point out the error. If you don't have an IDE some text editor that is capable of syntax highlighting will also help. -- Bruno Mattarollo <bruno.mattarollo@diala.greenpeace.org> Head of IT - Greenpeace International [ http://www.greenpeace.org/ ]


« previous php.general (#177363) next »