[PHP] Setting fopen timeout ?

2004-05-02 Thread Dave Carrera
Hi List,

How can I set fopen to time out if a url is not reachable ?

I have tried set_time_limit but that dose not seem to work.

Thank you in advance for any help or pointers.

Dave C

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.674 / Virus Database: 436 - Release Date: 02/05/2004
 

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



Re: [PHP] Setting fopen timeout ?

2004-05-02 Thread Marek Kilimajer
Dave Carrera wrote:
Hi List,

How can I set fopen to time out if a url is not reachable ?

I have tried set_time_limit but that dose not seem to work.

Thank you in advance for any help or pointers.

Dave C

I'm not sure it will help but try ini_set('default_socket_timeout', XX);

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.674 / Virus Database: 436 - Release Date: 02/05/2004
 

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