SSL Streams : fsockopen « File Directory « PHP

SSL Streams

$conn = @fsockopen('tcp://', 80);
If (!$conn) die('Unable to connect to');
fwrite($conn, "GET / HTTP/1.0\r\n");
fwrite($conn, "Host:\r\n\r\n");

Related examples in the same category

1.Outputting the Status Lines Returned by Web Servers
2.fsockopen() function establishes a socket connection, TCP or UDP.
4.Sockets Are Files
5.Scan a server
6.Retrieving a Web Page Using fsockopen()