views:

28

answers:

1

Hello, there is a way to make a fsockopen with unlimited timeout ? Like CURLOPT_TIMEOUT=0 ?

+2  A: 

Use the $timeout parameter.

It's right there in the manual: http://php.net/fsockopen

Daniel Egeberg
For unlimited timeout i have to set this value to 0, right ?
Fabien Bernede
and prepend set_time_limit(0) to my php file ?
Fabien Bernede
@Fabien: Yes and yes.
Daniel Egeberg