Look at:
http://www.php.net/fsockopen
A quick example might be:
// Open a socket to the remote host on port 80 (web server)
$fp = fsockopen("www.host.com", "80", $errno, $error, 30);
// Format the request to send to the web server, the format is <METHOD> <URI> <VERSION><crlf>
$request = "GET /directory/script.cgi?var1=value1&var2=value2 HTTP/1.0\r\n";
// Write the request to the server
fputs($fp, $request);
// Now, get the response
while (!feof($fp)) {
fgets($fp, 1024);
}
// Close connection
fclose($fp);
Hope that helps!
Chris King