php.ajax.coder Posted February 26, 2009 Share Posted February 26, 2009 I want to print the page source of any page what's the best way of doing this Thanks Link to comment https://forums.phpfreaks.com/topic/147016-solved-page-source/ Share on other sites More sharing options...
JonnoTheDev Posted February 26, 2009 Share Posted February 26, 2009 Basic, but will give your the source $url = "http://www.google.com"; $page = file_get_contents($url); print "<xmp>".$page."</xmp>"; Link to comment https://forums.phpfreaks.com/topic/147016-solved-page-source/#findComment-771855 Share on other sites More sharing options...
php.ajax.coder Posted February 26, 2009 Author Share Posted February 26, 2009 Thanks Link to comment https://forums.phpfreaks.com/topic/147016-solved-page-source/#findComment-771953 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.