[thelist] [PHP] Visiting a page in the background?

kasimir-k kasimir.k.lists at gmail.com
Fri May 2 04:34:10 CDT 2008

Tris scribeva in 2008-04-30 12:50:
> Hmmm, I just tried making the URL to call http://www.bbc.co.uk and I got back:
> Resource id #4

So you are still trying to use fopen()? It is supposed to return a 
resource. You can then read and write the opened file using this 
resource. fopen() on its own does not make a HTTP request. 

A lot easier is to use file() or file_get_contents()
<http://php.net/file> or <http://php.net/file-get-contents>


More information about the thelist mailing list