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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.