getting PHP or ASP code?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
phoenix121
Forum Commoner
Posts: 28
Joined: Sun Sep 25, 2005 9:09 pm
Location: New Zealand

getting PHP or ASP code?

Post by phoenix121 »

is there any way to get the PHP (or ASP) code of any site?

Code: Select all

echo htmlspecialchars(file_get_contents($address));
that code works on local files, but is there any other code that can do the same for files not on the local server?
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

if that were possible i would have hacked every site in this universe :twisted: :twisted: :twisted:
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

doing a file_get_contents() or any other one of the file functions for that matter on a remote file makes an http request by your server. You will recieve whatever a browser would, not the page code that generated it.
Post Reply