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

preg_match('/(<!DOCTYPE.+<\/html>)/ms', $http_response, $html)

...puts it into $html[1]. Adjust to suit your local standards-compliance
practices. You can also look for everything after the first instance of
"\n\n".

---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca            http://mike.teczno.com/contact.html


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

Reply via email to