Re: Http headers
| From: | Jason Brooke | Date: | Tue, 25 Jul 2000 05:05:57 +0000 |
| Subject: | Re: Http headers | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7987@lists.php.net to get a copy of this message | ||
Hi. Is there any way to make php stop sending http headers?
I´m making an http request directly to a server with fsockopen etc etc, but
the header response from the server appears as text in the resulting web
page. Any ideas?
Thanks,
Joel.
No, not unless you modify the source of your web server. If you run the cgi
version of Php, you can use the -q switch to supress http heaaders, but the
remote web server will still send headers back (as it should) when you read
from the socket
Why do you print out the http headers anyway? If you don't want them printed
out, you should only display everything after the first occurance of two
newlines
jason