Re: [PHP] Parse Error Suggestions?
On Mon, 18 Mar 2002, Mike At Spy wrote: Anyone have any suggestions for getting better reporting on a generic Parse Error? Code is falling to the end of the script, and I can't find a problem anywhere. I'd guess you left a curly brace open. Try opening the file in an editor that lets you balance your braces. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Parse Error Suggestions?
Good day, It's not really possible to have an error reporting function on a parse error. If there is a parse error, then the program can not be run, period. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: Mike At Spy [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 10:53 AM To: [EMAIL PROTECTED] Subject: [PHP] Parse Error Suggestions? Anyone have any suggestions for getting better reporting on a generic Parse Error? Code is falling to the end of the script, and I can't find a problem anywhere. I looked on the PHP site for error reporting functions, but apparently they do not handle Parse Errors. Thanks, -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Parse Error Suggestions?
On Mon, 18 Mar 2002, Mike At Spy wrote: Anyone have any suggestions for getting better reporting on a generic Parse Error? Code is falling to the end of the script, and I can't find a problem anywhere. I'd guess you left a curly brace open. Try opening the file in an editor that lets you balance your braces. I thought the same thing exactly - but I have gone over them a dozen times and I am getting nothing! In fact, shouldn't any script run before the error? i.e. - shouldn't a print or echo before any script runs produce something? Mine isn't! -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Parse Error Suggestions?
Not sure exactly what your code is but if you try to pass a literal where a reference type parameter is defined this produces a blank page. function test( $var ) { echo $var } if you call with test( hello ) you get NO output. Ben At 18:01 18/03/2002, Mike At Spy wrote: On Mon, 18 Mar 2002, Mike At Spy wrote: Anyone have any suggestions for getting better reporting on a generic Parse Error? Code is falling to the end of the script, and I can't find a problem anywhere. I'd guess you left a curly brace open. Try opening the file in an editor that lets you balance your braces. I thought the same thing exactly - but I have gone over them a dozen times and I am getting nothing! In fact, shouldn't any script run before the error? i.e. - shouldn't a print or echo before any script runs produce something? Mine isn't! -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php * Ben Edwards +44 (0)117 9400 636 * * Critical Site Builderhttp://www.criticaldistribution.com * * online collaborative web authoring content management system * * i-Contact Progressive Video http://www.videonetwork.org * * Smashing the Corporate image http://www.subvertise.org * * Bristol Indymedia http://bristol.indymedia.org * * Bristol's radical news http://www.bristle.org.uk * * PGP : F0CA 42B8 D56F 28AD 169B 49F3 3056 C6DB 8538 EEF8 * -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Parse Error Suggestions?
On Tuesday 19 March 2002 02:01, Mike At Spy wrote: On Mon, 18 Mar 2002, Mike At Spy wrote: Anyone have any suggestions for getting better reporting on a generic Parse Error? Code is falling to the end of the script, and I can't find a problem anywhere. I'd guess you left a curly brace open. Try opening the file in an editor that lets you balance your braces. I thought the same thing exactly - but I have gone over them a dozen times and I am getting nothing! In fact, shouldn't any script run before the error? i.e. - shouldn't a print or echo before any script runs produce something? Mine isn't! The *whole* file gets parsed *before* any code is executed. Check that you don't have any missing semi-colons (;) -- no, that's not a smiley. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* Style may not be the answer, but at least it's a workable alternative. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php