Re: [PHP] Parse errors

2012-03-19 Thread tamouse mailing lists
On Sun, Mar 18, 2012 at 2:18 PM, Tim Streater t...@clothears.org.uk wrote: On 18 Mar 2012 at 17:46, Simon J Welsh si...@welsh.co.nz wrote: This is expected. The error doesn't occur to the second file is included, so everything in the first included file is parsed and run before execution is

[PHP] Parse errors

2012-03-18 Thread Tim Streater
After recently omitting a semicolon from the end of a statement, and having the result be a JavaScript error in an odd place, I'm trying to pin down just what PHP does with such errors. I made a small test script to run at CLI, which does some echoes and then, after that, I miss out a

Re: [PHP] Parse errors

2012-03-18 Thread Simon J Welsh
On 19/03/2012, at 6:32 AM, Tim Streater wrote: After recently omitting a semicolon from the end of a statement, and having the result be a JavaScript error in an odd place, I'm trying to pin down just what PHP does with such errors. I made a small test script to run at CLI, which does some

Re: [PHP] Parse errors

2012-03-18 Thread Tim Streater
On 18 Mar 2012 at 17:46, Simon J Welsh si...@welsh.co.nz wrote: This is expected. The error doesn't occur to the second file is included, so everything in the first included file is parsed and run before execution is halted. Simon, Thanks for that. Looks like I should be able to catch most

[PHP] Parse Errors with 5.2 on Linux

2006-11-07 Thread Michael Caplan
Hi there, I just installed PHP 5.2 on a linux server (compiled from source), and am having some strange problems with a script that is reporting a fatal parse error: Parse error: syntax error, unexpected $end in /xxx/xxx/xxx/functions.php on line 1213 This very script parses just

Re: [PHP] Parse Errors with 5.2 on Linux

2006-11-07 Thread Richard Lynch
On Tue, November 7, 2006 11:30 am, Michael Caplan wrote: I just installed PHP 5.2 on a linux server (compiled from source), and am having some strange problems with a script that is reporting a fatal parse error: Parse error: syntax error, unexpected $end in /xxx/xxx/xxx/functions.php on

RE: [PHP] Parse Errors with 5.2 on Linux

2006-11-07 Thread Michael Caplan
To: Michael Caplan Cc: php-general@lists.php.net Subject: Re: [PHP] Parse Errors with 5.2 on Linux On Tue, November 7, 2006 11:30 am, Michael Caplan wrote: I just installed PHP 5.2 on a linux server (compiled from source), and am having some strange problems with a script that is reporting a fatal parse

Re: [PHP] Parse Errors with 5.2 on Linux

2006-11-07 Thread Stut
Richard Lynch wrote: I never have understood why it was kosher to leave the final ? off, for example, so maybe that changed. :-) [I doubt it] Certainly hasn't changed, and I hope it never does. Having to find an errant space or carriage return at the end of an include file that is one of

Re: [PHP] Parse Errors with 5.2 on Linux

2006-11-07 Thread Robert Cummings
On Tue, 2006-11-07 at 21:18 +, Stut wrote: Richard Lynch wrote: I never have understood why it was kosher to leave the final ? off, for example, so maybe that changed. :-) [I doubt it] Certainly hasn't changed, and I hope it never does. Having to find an errant space or carriage

[PHP] Parse Errors

2002-12-14 Thread Andy Turegano
I am a PHP beginner so this error may be a stupid one. Anyway, I'm trying to write a simple addition script. The client enters two numbers, then my script (adder.php) adds them. However, when the script is run, I get Parse Error On Line 3 I have no idea exactly what I have done wrong. Here is the

Re: [PHP] Parse Errors

2002-12-14 Thread DL Neil
Andy, I am a PHP beginner so this error may be a stupid one. Anyway, I'm trying to write a simple addition script. The client enters two numbers, then my script (adder.php) adds them. However, when the script is run, I get Parse Error On Line 3 I have no idea exactly what I have done wrong.

[PHP] Parse errors: path?

2002-09-03 Thread Wm
I'm getting a parse error with this PHP statement: ?php $path = '/usr/local/plesk/apache/vhosts/.../httpdocs/thumbnails/'; $dir = opendir($path) or die(Could not open $dir); while ($file = readdir($dir)){ if (stristr($file, 'jpg') || stristr($file, 'jpeg')){ echo A

[PHP] parse errors not displayed (2nd time I ask!)

2002-04-29 Thread Pedro Garre
*This message was transferred with a trial version of CommuniGate(tm) Pro* Hi, I am sorry I ask this for a second time. Come on guys ! I am sure somebody can help, please I set my own error handler. It is in a file general_includes.php (please find it below) and all pages do a require on

Re: [PHP] parse errors not displayed (2nd time I ask!)

2002-04-29 Thread 1LT John W. Holmes
[EMAIL PROTECTED] Sent: Monday, April 29, 2002 5:37 PM Subject: [PHP] parse errors not displayed (2nd time I ask!) *This message was transferred with a trial version of CommuniGate(tm) Pro* Hi, I am sorry I ask this for a second time. Come on guys ! I am sure somebody can help, please I set