Hi everyone,
Does anyone know a way to specify a timeout for file_get_contents?
Things like set_time_limit() don't work -- I want file_get_contents to fail after 10 seconds or 20 seconds
any ideas?
Thanks,
papayiya
Hi everyone,
Does anyone know a way to specify a timeout for file_get_contents?
Things like set_time_limit() don't work -- I want file_get_contents to fail after 10 seconds or 20 seconds
any ideas?
Thanks,
papayiya
i dont think you can
you could use fsockopen() and then use stream_set_timeout() though