That's not PHP 8o
Try using this handy function:
$data = "var1=abc&var2=def"
$host = "www.domain.com";
$path = "/insert.asp";
function PostToHost($host, $path, $data) {
$fp = fsockopen($host,80);
fputs($fp, "POST $path HTTP/1.1\r\n");
fputs($fp, "Host: $host\r\n")...