unowned Posted January 12, 2008 Share Posted January 12, 2008 Hello all, new to the forum, I'm trying to access a socket, but the time it takes to retrieve data is too long. I want to set a time limit on how long to keep the socket open. I've tried using the set_time_limit function to limit the amount of time it is accessing the url, but it doesn't work on my system for some reason. Any help would be greatly appreciated. Thanks Link to comment https://forums.phpfreaks.com/topic/85618-how-to-set-time-out-limit/ Share on other sites More sharing options...
toplay Posted January 12, 2008 Share Posted January 12, 2008 You should have posted your code when needing help. I assume you're using fsockopen(). If so, use the last argument to set a time limit. See manual: http://us.php.net/manual/en/function.fsockopen.php Link to comment https://forums.phpfreaks.com/topic/85618-how-to-set-time-out-limit/#findComment-436936 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.