Getting and Printing a Web Page with fopen() : Socket : Network PHP Source Code


PHP Source Code » Network » Socket »

 

Getting and Printing a Web Page with fopen()



<html>
<head>
<title>Getting and printing a web page with fopen()</title>
</head>
<body>
<?php
$webpage = "http://www.navioo.com/index.htm";
$fp = fopen$webpage, "r" or die("couldn't open $webpage");
while ! feof$fp )){
    print fgets$fp, 1024 );
}
?>
</body>
 </html>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Network
» Socket