@ECHO OFF
IF NOT EXIST %1.php goto usage
php.exe -q %1.php
goto end
:usage
echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
echo ³ USAGE ³
echo ³Type "php.bat" (without quotes)³
echo ³ followed by the name of a ³
echo ³valid php file without the .php³
echo ³extension. ³
echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
:end
Chris Wesley wrote:
On Thu, 5 Dec 2002, Leif K-Brooks wrote:
I'm running a few simple php scripts from the (windows) command line.php.exe -q
Since I'm not using a web browser to view it, the HTTP headers are
annoying and pointless. I've turned expose_php off in php.ini, but
commenting out default_mimetype changes nothing, and setting it to an
empty string sends a blank content-type header. Is there any way to do
this?
~Chris
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.