Stooney Posted November 23, 2007 Share Posted November 23, 2007 Is there a way for php to grab the source of a site such as site.com/index.php. I don't mean the php code, just what the user would see if they visited the site, lets the scripts do what they do, then viewed the source. hope that makes sense... Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted November 23, 2007 Share Posted November 23, 2007 Yes following is the code $strContent = file_get_contents("http://site.com/index.php"); Quote Link to comment Share on other sites More sharing options...
helraizer Posted November 23, 2007 Share Posted November 23, 2007 I know it's been solved but there are two other ways to do it also. highlight_file("www.URL.ext") or view_source() Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.