Slow in retriveing webpage

From: Date: Sat, 04 May 2002 14:02:55 +0000
Subject: Slow in retriveing webpage
Groups: php.general 
Request: Send a blank email to php-general+get-96049@lists.php.net to get a copy of this message
Hi! I want to grab a webpage and I use the file() function to grab it. The URL in the file() function works OK when I typed it in my address bar. The speed is OK. $fcontents = file ("http://www.website.com/cgi-bin/cgifunction/webpage.cgi"); However, when I use the above code and tried to run the PHP file, I have to wait for 10 seconds before I get any results. I tried to isolate the problem and realised that the slowing down portion is the above line. I tried fopen() and the results is still the same. I need to know if it is possible to speed up the above process. If possible, please email me at nkthen@singnet.com.sg Thank you for any help rendered.

« previous php.general (#96049) next »