View the HTML source of any webpage
Even if the page has a no right click script or other source view preventitive measures you can still view the source code. This is PHP5+ only.
Change the $url to the url you want to view.
This code uses file_get_contents which is the same as using fread/fopen etc... but it saves about 5 lines, only works in php5+.
The htmlentities converts the contents to a format which can be displayed with actually parsing the html.
The nl2b2 converts all the line breaks '\n' '\r' to <br />.
Just change the url and run the script and viola, you have the source.
This php script was submitted by rob
This script has been downloaded 43 times.
This script has been downloaded 43 times.




feel free to enter your url too, it's a free link back to you:
Please keep your comment related to the content on this page.