- fsockopen: documentation ( source)
- fclose: documentation ( source)
- feof: documentation ( source)
- fwrite: documentation ( source)
- fread: documentation ( source)
<?php
$fp = fsockopen ("pkwteile.de", 80);
if ($fp) {
fwrite($fp, "GET / HTTP/1.1\r\nHOST: pkwteile.de\r\n\r\n");
while (!feof($fp)) {
print fread($fp,256);
}
fclose ($fp);
} else {
print "Fatal error\n";
}