Jump to content
xisto Community
vietonline

View Souce Code do you know this site?

Recommended Posts

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

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

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

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

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

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
Guest
This topic is now closed to further replies.

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.