RE: [PHP] fsockopen

From: Date: Tue, 22 Jul 2003 19:38:48 +0000
Subject: RE: [PHP] fsockopen
Groups: php.general 
Request: Send a blank email to php-general+get-156294@lists.php.net to get a copy of this message
If you only need the HTML why don't you look up file() http://www.weberdev.com/get_example.php3?count=729 Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. Share your code : http://addexample.weberdev.com -----Original Message----- From: Doug La Farge [mailto:doug@lafarge.net] Sent: Tuesday, July 22, 2003 12:27 AM To: php-general@lists.php.net Subject: [PHP] fsockopen Is there a way to get fsockopen to suppress the header information it returns. I have no use for the crap, have no idea how to use a regexp to get it out of there (nor does anyone on this list it would seem either). I'd like to be able to grab a web page as it is presented to the browsers (as seen in view source). HTTP/1.1 200 OK Date: Tue, 22 Jul 2003 05:14:41 GMT Server: Apache/1.3.27 (Unix) mod_jk/1.1.0 mod_ssl/2.8.12 OpenSSL/0.9.6g Set-Cookie: JSESSIONID=jwjesefa81;Path=/Interface Connection: close Content-Type: text/html;charset=ISO-8859-1 The above crap needs to not be returned. Any ideas?

« previous php.general (#156294) next »