Re: checking PHP-syntax ...

From: Date: Sun, 29 Oct 2000 07:56:06 +0000
Subject: Re: checking PHP-syntax ...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-22579@lists.php.net to get a copy of this message
just run it in a shell. <? $command = "/usr/local/bin/php -q /home/httpd/vhosts/test.php"; exec($command, $output); echo "$output <br>\n"; ?> Of course you dont have to echo $output, you can search it for "Parse Error" etc. etc. remember you will have to have php compiled as a cgi for this to work, I compile php as --enable-apxs then without so I get my libphp4.so and my php executable. more info on exec() http://www.php.net/manual/function.exec.php Chris Lee Mediawaveonline.com

« previous php.general (#22579) next »