Re: [PHP] pulling content from a URL

2005-03-04 Thread Matthew Fonda
I would recommend using PEAR::HTTP_Request for this. It does exactly what you want to do, and can handle error handling very well http://pear.php.net/package/HTTP_Request > I'm writing a script that needs to put the contents of an external URL > into a variable. I need to include some sort of e

AW: [PHP] pulling content from a URL

2005-03-04 Thread Mario Micklisch
[..] > into a variable. I need to include some sort of error checking that > will kill this request if for some reason the URL request hangs for > more then 15 seconds. In researching this, I think the correct > function to use is fsockopen, but I can't seem to get it to work. Can > someone

[PHP] pulling content from a URL

2005-03-04 Thread Nicholas W . Miller
I'm writing a script that needs to put the contents of an external URL into a variable. I need to include some sort of error checking that will kill this request if for some reason the URL request hangs for more then 15 seconds. In researching this, I think the correct function to use is fsoc