php _files get content code example
Example 1: php get file contents
<?php
file_get_contents("file.txt");
?>
Example 2: php file_get_contents
<?php
$homepage = file_get_contents('http://www.example.com/');
echo $homepage;
?>
<?php
file_get_contents("file.txt");
?>
<?php
$homepage = file_get_contents('http://www.example.com/');
echo $homepage;
?>