<?php$fp = fsockopen('www.php.net', 80);fwrite($fp, "GET / HTTP/1.0\r\nHost: www.php.net\r\n");$data = fread($fp, 8192);?>
Example of a correct request:
POST /test/index.php HTTP/1.1
Host: mywebsite.com
name1=value1&name2=value2
http://php.net/manual/en/intro.stream.php: A wrapper is additional code which tells the stream how to handle specific protocols/encodings
http://php.net/manual/en/function.flock.php