This post has been edited by MysteriousFeez: 28 July 2011 - 09:37 AM
22 Replies - 721 Views - Last Post: 29 July 2011 - 06:45 AM
#1
Getting source from php on website
Posted 28 July 2011 - 09:37 AM
Does anybody know how to get the source of a php page on a website that is not mine? Please be a little noob friendly as I am not great with php. The last time I was on this site was in 2009.
Replies To: Getting source from php on website
#2
Re: Getting source from php on website
Posted 28 July 2011 - 09:39 AM
Simple answer, you can't.
#3
Re: Getting source from php on website
Posted 28 July 2011 - 09:42 AM
Expanding a little, PHP runs on the server side, not the client side. So the source you can get is the HTML output on the webpage, which is on the client side.
#4
Re: Getting source from php on website
Posted 28 July 2011 - 09:42 AM
EnvXOwner, on 28 July 2011 - 10:39 AM, said:
Simple answer, you can't.
I have done it on accident before, it asked me to open the page with the default thing to open php files, but I was able to open it in a text editor too. Is there a way to disable php so it does not know what to open the page with so it prompts me?
#5
Re: Getting source from php on website
Posted 28 July 2011 - 09:43 AM
It sounds like you don't have PHP installed on the local system you are running it on.
#6
Re: Getting source from php on website
Posted 28 July 2011 - 09:44 AM
The PHP was more than likely displaying as plain text due to a problem with your PHP installation.
#7
Re: Getting source from php on website
Posted 28 July 2011 - 09:45 AM
macosxnerd101, on 28 July 2011 - 10:43 AM, said:
It sounds like you don't have PHP installed on the local system you are running it on.
But I do.
EnvXOwner, on 28 July 2011 - 10:44 AM, said:
The PHP was more than likely displaying as plain text due to a problem with your PHP installation.
Well the php was from my antivirus, it implements php on every page I visit to check if the page is safe.
#8
Re: Getting source from php on website
Posted 28 July 2011 - 09:46 AM
You obviously can't disable PHP on a remote server.
I think you're misunderstanding what PHP is (yay second time I've said that today!).
It's a server side language, nothing to do with PHP is sent down to the browser. ONLY the output generated by PHP will be output to the browser and nothing more, all parsing of the PHP file is done server side and is nothing to do with your browser.
There is no way to make it prompt you to stop the server's processing as this would obviously be a massive security hole.
EDIT: And your anti-virus will not "put php on every page", lol
I think you're misunderstanding what PHP is (yay second time I've said that today!).
It's a server side language, nothing to do with PHP is sent down to the browser. ONLY the output generated by PHP will be output to the browser and nothing more, all parsing of the PHP file is done server side and is nothing to do with your browser.
There is no way to make it prompt you to stop the server's processing as this would obviously be a massive security hole.
EDIT: And your anti-virus will not "put php on every page", lol
This post has been edited by RudiVisser: 28 July 2011 - 09:46 AM
#9
Re: Getting source from php on website
Posted 28 July 2011 - 09:47 AM
RudiVisser, on 28 July 2011 - 10:46 AM, said:
You obviously can't disable PHP on a remote server.
I think you're misunderstanding what PHP is (yay second time I've said that today!).
It's a server side language, nothing to do with PHP is sent down to the browser. ONLY the output generated by PHP will be output to the browser and nothing more, all parsing of the PHP file is done server side and is nothing to do with your browser.
There is no way to make it prompt you to stop the server's processing as this would obviously be a massive security hole.
EDIT: And your anti-virus will not "put php on every page", lol
I think you're misunderstanding what PHP is (yay second time I've said that today!).
It's a server side language, nothing to do with PHP is sent down to the browser. ONLY the output generated by PHP will be output to the browser and nothing more, all parsing of the PHP file is done server side and is nothing to do with your browser.
There is no way to make it prompt you to stop the server's processing as this would obviously be a massive security hole.
EDIT: And your anti-virus will not "put php on every page", lol
I do not mean disable the php on the remote server, but to keep it from running on my pc so my computer does not know how to run it so it asks me.
#10
Re: Getting source from php on website
Posted 28 July 2011 - 09:49 AM
This is my point.
Your computer does not run PHP.
Your computer does not run PHP.
#11
Re: Getting source from php on website
Posted 28 July 2011 - 09:50 AM
You can't keep it from running on your PC since your PC is not running it, only displaying the output.
#12
Re: Getting source from php on website
Posted 28 July 2011 - 09:50 AM
#13
Re: Getting source from php on website
Posted 28 July 2011 - 09:51 AM

POPULAR
#14
#15
Re: Getting source from php on website
Posted 28 July 2011 - 09:53 AM
I think you're looking for Javascript man, which is displayed in the browser because the client parses the Javascript.
|
|

New Topic/Question
Reply




MultiQuote








|