vietonline 0 Report post Posted August 5, 2006 I have seen this site before.The site is simple.there are a box that you can put a url link then press enter you can see the code of the page (see everything include meta,comment...),even it is written in php,asp...If anyone know this site,please let me know(I have format my computer,so I lost it).thank you. Share this post Link to post Share on other sites
jlhaslip 4 Report post Posted August 5, 2006 Most Browsers have a view source function installed to inspect the HTML output for a web site. php and asp (server side scripting languages) only serve up information as html to Browsers. I am not aware of any method to view the source of php via web URL's. Share this post Link to post Share on other sites
whatsername34 0 Report post Posted August 5, 2006 I have seen this site before.The site is simple.there are a box that you can put a url link then press enter you can see the code of the page (see everything include meta,comment...),even it is written in php,asp...If anyone know this site,please let me know(I have format my computer,so I lost it).thank you.There's a website that can do that? WOW! Share this post Link to post Share on other sites
electriic ink 1 Report post Posted August 5, 2006 You can have a link to view the html/javascript OUTPUT of any webpage but not the php/asp code as that's executed at the server and so never makes it to the browser: <html> <head> <script type="text/javascript"> function viewthatsource() { var page = document.viewsource.url.value; document.viewsource.button.value = 'Accessing Source....'; document.viewsource.button.value = 'Found Source'; document.location ='view-source:' + page; return false; } </script> </head> <body> <form name="viewsource" action="return viewthatsource();"> <input type="text" name="url" value="http://"> <input type="submit" name="button" value="View Source"> </form> </body></html> The code above should work but if it doesn't, don't hesitate to say so. Share this post Link to post Share on other sites
vietonline 0 Report post Posted August 5, 2006 Most Browsers have a view source function installed to inspect the HTML output for a web site. php and asp (server side scripting languages) only serve up information as html to Browsers. I am not aware of any method to view the source of php via web URL's.Yeah I know how to view the source code from the browser.But the thing I mean here is that I can see the asp,php source code,and i'm sure it exist beause I have seen it before.And I lost that website when I format my computer.I just use it only one time so I don't remember its url. Share this post Link to post Share on other sites
rvalkass 5 Report post Posted August 5, 2006 PHP and ASP are both server-side scripting languages. Whenever any web browser, server or anything requests them, they are processed on the server and then the output is sent to the requesting browser or server. The only way you will see the source is if the server where the script is located doesn't have PHP/ASP running, so there is nothing to parse the code, and it is presented directly, or obviously if you are directly accessing the server to read the scripts, and edit them as you would at home.I've also searched in Google, and I can find many pages that show you the HTML output, but not the PHP or ASP scripts "behind the scenes". Share this post Link to post Share on other sites
mclovin 0 Report post Posted December 7, 2007 You can view source of a website by going to view>page source or something similar to that in different browsers. but i do know that the shortcut in Firefox is Ctrl+U-Frank Share this post Link to post Share on other sites
Forbez 0 Report post Posted December 7, 2007 Or you can just right click and press Veiw Source. But you can't see the php script though. Share this post Link to post Share on other sites
jlhaslip 4 Report post Posted December 8, 2007 This is becoming redundant.Closed Share this post Link to post Share on other sites