PHP tip: How to get a web page using the fopen wrappers | Nadeau Software
PHP’s fopen wrappers enable the standard file functions to read web pages from a web server. A few additional calls are needed to set parameters for a web server ... "http_code" the page status code (e.g. "200" on success) "header" the header as an array ...