Re: syntax checking?

From: Date: Wed, 23 Nov 2005 15:43:41 +0000
Subject: Re: syntax checking?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-226363@lists.php.net to get a copy of this message
Bing Du wrote:
Jay Blanchard wrote:
[snip] How should PHP syntax be checked before execution? Anything similar to what option -c does in Perl? % perl -c test.pl [/snip] from the command line /usr/local/bin/php -i myScript.php [/snip] Ooops, sorry, should be an ell "l" /usr/local/bin/php -l myScript.php
Too late :). I've already tried -i. Boy, that returns tons of information . My machine was choked. Bing
Even with error_reporting set to E_ALL in php.ini, I still get 'Errors parsing file.php' using the php command with the -l option. Anyway to see more than that? Thanks, Bing

« previous php.general (#226363) next »