ASP, JSP, PHP source

Can we see the sorce code of ASP, JSP, and PHP via  browser’s View | Source option
teeraAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

b0lsc0ttIT ManagerCommented:
teera,

No.  Server languages process the script and return the "customized" HTML that makes up the page and is visible by Viewing Source.

b0lsc0tt
0
b0lsc0ttIT ManagerCommented:
In order to actually see the script the server would have to not process it.  For example, if you renamed one of your pages with the extension .txt and the server allowed those to be viewed then your code would appear in the browser.  As long as the server is set up to process the file then the browser will only get what the server sends.

I hope this is helpful and informative.  Let me know if you have any questions or need more details.

b0l
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Shalom CarmelCTOCommented:
Ocassionally, due to bugs in the server implementation, you can see the source itself.
However, this is platform specific and usually fixed promptly by the vendor.

http://search.securityfocus.com/swsearch?query=source+disclosure&sbm=%2F&submit=Search%21&metaname=alldoc&sort=swishlastmodified

ShalomC
0
deepaknetCommented:
No. It rather defeats the purpose of serverside programming and ultimate breach of security of webserver infrastructure itself.

But there are cases like for example in MSDN where sample ASP.NET code are displayed. They have a file called srcviewer.aspx, which reads the specified ASPX page from the folder in the server, syntax colorizes it and displays the same.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.