View Full Version : fsockopen
AIMJournals
11-13-2004, 09:29 PM
OK, I have code to make a robot for AIM in PHP. It uses fsockopen to open the socket to the AIM TOC server. The trouble is, I keep getting a timeout on the connection. I can run this script fine on my local computer, but the problem is that I wouldn't be able to run the code 24/7 because I have dialup and I shut down my computer... anyway, does anyone know what could be wrong with the fsockopen? I'll provide the code if needed.
mahangee
11-14-2004, 08:38 AM
So let me get you right, you want to run it on webservers but it keeps timing out. And you want it to stop timing out? So couldnt you just use stream_set_timeout() to select how long you want it open?
stream_set_timeout($fsockopen_declared as a variable, interger seconds how long you want to keep the connection open)
Hope That Helps
If it doesnt post your code see if we can help you a bit more.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.