html - How do I include an external file in PHP? -
i need include , external file on url. example google.com. have tested include using local files, works, if try , use 127.0.0.1/filetoinclude.txt nothing happens. don't error, blank page. how supposed include http://google.com in page?
i have no idea why you'd want this, try like:
<?php $google_page = file_get_contents('http://www.google.com'); echo $google_page; ?>
Comments
Post a Comment