#native_company# #native_desc#

Source Viewing

By Steven Chalker
on December 17, 2001

There are many ways to do source opening.

1. Use some variables to get source.

if(!isset($PATH_INFO)) {
echo "<H1> No Source </H1>";
} else {

2. Open a socket. function getSource($host,$page) { $source = fsockopen($host,80);
fputs($source, "GET $page HTTP/1.0rnHost: $hostrn");
$sourcetext = fgets($source,128);

fclose($source); return $sourcetext; }

The example would be: getSource("www.yahoo.com","/index.html");

Get it now?