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