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 Quote 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>"; Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/147016-solved-page-source/#findComment-771953 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.