Read URL content in PHP

Posted By: Matpal - March 10, 2011
This is a simple code that reads the content of a URL http://google.com and displays this on web browser.
<?php

/*Using this method you can get the 
content of the URL */

$file_contents=file_get_contents("http://google.com");

echo $file_contents;

?>

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.