I have written a program that opens a page on a games server, using zlib functions, opens the file (gzopen), then uses gzreader to read it. It works fine on a XP Windows Server/CGI for PHP, with the following php.ini settings modified:
max_execution_time 360
max_input_time 360
from their defaults of 30 and 60 respectively. But when i try to run the same script on a commercial server running Apache with the defaults set, the script throws the following error:
$fp = gzopen($theurl, "r");
Warning: gzopen($theurl): failed to open stream: Connection timed out in online8.php on line 726
What i don't understand, is that it doesn't take 30 seconds to run the script when it is hosted on the Windows XP machine. The problem is the Windows XP machine can only handle 10 max users at a time. I want to be able to port the script to any server.