file_get_contents from local file code example Example: php file_get_contents <?php $homepage = file_get_contents('http://www.example.com/'); echo $homepage; ?>