[SIZE=1]$req = "var=weewee";
//create headers...
$header .= "POST /index.php HTTP/1.0\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= 'Content-Length: ' . strlen($req) . "\r\n\r\n";
$fp = fsockopen (server.com', 80, $errno, $errstr, 300);
if (!$fp) {
// ERROR
echo "$errstr ($errno)";
} else {
//put the data..
fputs ($fp, $header . $req);
while (!feof($fp)) {
//read the data returned...
$res.= fgets ($fp, 1024);
}
fclose ($fp);
}
[/SIZE]
Figured it out mahself!