Read URL content in PHP

Posted By: Matpal Media - 10:42 AM
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.