php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #7550 Content-type header cannot be turned off
Submitted: 2000-10-31 12:11 UTC Modified: 2000-10-31 17:23 UTC
From: greg at currie dot clara dot net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.3pl1 OS: Linux (Red Hat 6.2)
Private report: No CVE-ID: None
 [2000-10-31 12:11 UTC] greg at currie dot clara dot net
It would be nice to be able to turn off the content-type header for when using php as an executable for non web scripting and cron jobs etc. I tried setting the default_mimetype value in php.ini to "" and NULL but it still prints the Content-type: as empty.

Thanks

Greg

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-31 17:23 UTC] mathieu@php.net
Using CGI binary try 

$ php -q MyScript.php

--Mathieu

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 15 00:00:02 2026 UTC