[PHP] Sending no content-type header?

2002-12-05 Thread Leif K-Brooks
I'm running a few simple php scripts from the (windows) command line. 
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?

--
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.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Sending no content-type header?

2002-12-05 Thread Chris Wesley
On Thu, 5 Dec 2002, Leif K-Brooks wrote:
> I'm running a few simple php scripts from the (windows) command line.
>  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?

php.exe -q

~Chris


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Sending no content-type header?

2002-12-05 Thread Leif K-Brooks
 Ok, thanks a lot.  For what it's worth, here's my simple .bat file for 
executing php files:
@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.
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?
   


php.exe -q

   ~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.