From: Auke van Slooten on 22 Mar 2010 08:16 Jochen Schultz wrote: > Btw., when you use file_get_contets, is there a good way to tell the > script to stop recieving the file after let's say 2 seconds - just in > case the server is not reachable - to avoid using fsockopen? http://nl.php.net/manual/en/context.http.php specifically: timeout float Read timeout in seconds, specified by a float (e.g. 10.5). By default the default_socket_timeout php.ini setting is used. used with http://nl.php.net/manual/en/function.stream-context-create.php regards, Auke van Slooten Muze
First
|
Prev
|
Pages: 1 2 3 4 Prev: Remote Desktop Management Next: Example of good PHP namespace usage? |