Can't seem to be able to do a get request
| From: | Mathieu Dumoulin | Date: | Thu, 13 Mar 2003 13:50:36 +0000 |
| Subject: | Can't seem to be able to do a get request | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-139491@lists.php.net to get a copy of this message | ||
I got this script i wish to run like it was a seperate thread on the server
cause i can't run anything with a crontab but i can't seem to do a valid GET
request thru fsockopen. If anyone can help me please.
$fp = fsockopen ("sandbox.lhjmq.xl5.net", 80);
if ($fp) {
fputs ($fp, "GET /lang_fr/index.php HTTP/1.1");
while (!feof($fp)) echo fgets ($fp,128);
fclose ($fp);
}
I run the script from the web but nothing happens. If i run it also with the
real URL i want to get (I cannot show this url for security reasons) my
processor and mysql process should go up to 80% each for like 40 seconds and
my "top" command in shell would show it, but it's not happenning. Now i
tried index.php and still nothing!
Please help me out
Mathieu Dumoulin