I'm wondering how I would do something like this: Write a PHP script that grabs the complete HTML source of a website (just a signle page) and displays it exactly as it normally would, how would this have to happen...?
Question....
Started by Liquid Viper, Oct 05 2005 06:44 PM
2 replies to this topic
#1
Posted 05 October 2005 - 06:44 PM
#2
Posted 05 October 2005 - 07:02 PM
Hmm... i wonder... http://php.net/manua...et-contents.php
or http://php.net/manua...ction.fopen.php
Chance's are you won't get just the HTML, but it'll get the entire content of a file. I doubt you'll find a pre-made script (or function) to get HTML and HTML only, but ya never know.
or http://php.net/manua...ction.fopen.php
Chance's are you won't get just the HTML, but it'll get the entire content of a file. I doubt you'll find a pre-made script (or function) to get HTML and HTML only, but ya never know.
#3
Posted 05 October 2005 - 08:55 PM
Are you looking for something like this?
<?php
echo highlight_string(file_get_contents('http://www.google.com/'), true);
?>
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
