Welcome Guest ( Log In | Register)



 
Closed TopicStart new topic
> View Souce Code, do you know this site?
vietonline
post Aug 5 2006, 04:58 AM
Post #1


Advanced Member
*******

Group: Members
Posts: 127
Joined: 10-July 06
Member No.: 26,374



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.
Go to the top of the page
 
+Quote Post
jlhaslip
post Aug 5 2006, 05:13 AM
Post #2


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 3,882
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



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.
Go to the top of the page
 
+Quote Post
whatsername34
post Aug 5 2006, 06:56 AM
Post #3


Newbie
*

Group: Members
Posts: 1
Joined: 5-August 06
Member No.: 27,843



QUOTE(vietonline @ Aug 4 2006, 08:58 PM) *

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!
Go to the top of the page
 
+Quote Post
electriic ink
post Aug 5 2006, 11:39 AM
Post #4


Incest is a game the whole family can play.
Group Icon

Group: [MODERATOR]
Posts: 1,205
Joined: 11-February 05
From: Heaven
Member No.: 3,709



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
<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.
Go to the top of the page
 
+Quote Post
vietonline
post Aug 5 2006, 01:27 PM
Post #5


Advanced Member
*******

Group: Members
Posts: 127
Joined: 10-July 06
Member No.: 26,374



QUOTE(jlhaslip @ Aug 4 2006, 10:13 PM) *

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.
Go to the top of the page
 
+Quote Post
rvalkass
post Aug 5 2006, 06:15 PM
Post #6


apt-get moo
Group Icon

Group: [MODERATOR]
Posts: 2,056
Joined: 28-May 05
From: Hertfordshire, England
Member No.: 7,593
Spam Patrol



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".
Go to the top of the page
 
+Quote Post
mclovin
post Dec 7 2007, 06:45 PM
Post #7


Newbie
*

Group: Members
Posts: 8
Joined: 7-December 07
Member No.: 54,377



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
Go to the top of the page
 
+Quote Post
Forbez
post Dec 7 2007, 07:49 PM
Post #8


Privileged Member
*********

Group: [HOSTED]
Posts: 572
Joined: 13-December 06
Member No.: 35,271



Or you can just right click and press Veiw Source. But you can't see the php script though.
Go to the top of the page
 
+Quote Post
jlhaslip
post Dec 8 2007, 12:58 AM
Post #9


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 3,882
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



This is becoming redundant.

Closed
Go to the top of the page
 
+Quote Post