Page 1 of 1

getting PHP or ASP code?

Posted: Sat Oct 22, 2005 1:26 am
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?

Posted: Sat Oct 22, 2005 3:10 am
by n00b Saibot
if that were possible i would have hacked every site in this universe :twisted: :twisted: :twisted:

Posted: Sat Oct 22, 2005 8:28 am
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.