I would like to browse to a url eg http://mysite.com/index.html and dump the content of that site in a variable eg $htmlDump?
Anyhow, the PHP for this is very simple - you can just use the file_get_contents function like this:
<?php
$blah = file_get_contents("the-url-goes-here");
//$blah now contains the content of that web page
?>
Comment on this Question and Answer >>>
ASK A QUESTION
More website PHP Questions
What is this form of code for a website? http://www.virginamerica.com/va/home.do the drop down menu's. whats the name for that. im trying to incorporate it into my design, but dont no the name for it.I was wondering how do i make all the logs and comments go to an email account so my client does not have to keep logging in, she can get them and answer any questions via email.. Thanks
How do I display todays date on my website?
Help : how to automatically upload files every 5 minutes ? Hi , Can anybody help me with this php code : I want to read the file names from a folder ( word document files or media files with extentions) and enter the url of the files in mysql d
How do I make sure an include file exists before loading the page?
