Re: debuging and getting mor information about failures

From: Date: Wed, 30 Jul 2003 07:20:05 +0000
Subject: Re: debuging and getting mor information about failures
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-157496@lists.php.net to get a copy of this message
"Chrstian Brensteiner" <eingfoan@yahoo.de> wrote in message news:20030729071131.17365.qmail@pb1.pair.com... > whats the best option to get more information about a failure in your sorce > code ? > > whenever i get failures that are situated at the very end of my script how > do i get to know wherer they start? > > now i have get from apache + php this return > > Parse error: parse error, unexpected $ in > c:\programme\easyphp\www\cms\procede_presse.php on line 268 > > 268 is the last line of my script how to deal with those failures in an > intelligent way? Getting these errors at the last line in your script generally means that you omitted a closing '}'. So when you would do : <?php function something () { print ("done"); ?> You will get a similar error. Check all of your functions and if/else/foreach/ etc. structures for an omitted '}' to fix your script.\ Good luck! -- Ivo Fokkema PHP & MySQL programmer Leiden University Medical Centre Netherlands

« previous php.general (#157496) next »