Jump to content

Archived

This topic is now archived and is closed to further replies.

michellephp

Is it possible to see someone else's php code?

Recommended Posts

Just wondering if it's possible to veiw another sites php. view source doesn't work........... but I was really hoping to see this other sites code to try to fix mine ;) I'm guessing the answer is no.

Thanks!
Michelle.

Share this post


Link to post
Share on other sites
Of course it's no. PHP is an interpreted language - that is it is run on the server and then generates pure HTML. You'll have to ask for the code.

Share this post


Link to post
Share on other sites
PHP is not like HTML where you can go to anyones site and see their HTML source. With PHP your code is the [b]input[/b] (or source code) then the server (PHP intepreter) [b]processes[/b] your code and so you end up with the [b]output[/b] which is the HTML or plain text.

HTML on the other hand is not process by the server however it is by the browser it self. The same with CSS and Javascript.

You cannot get anyones source code by doing view source or by downloading the file as that will just provide you with the output of the script. The only way for you to see the true source code of someones script is if they provide a download of their script, which I dought or you have FTP access to where the PHP files are kept.

Share this post


Link to post
Share on other sites
Thanks for your responses, I thought that would be the case but I was hopeful ;)
I am just going crazy trying to figure out my pagination problems!!! :(

Share this post


Link to post
Share on other sites
ya i would like to be able to do that too....but if it did it would show your info like password and database stuff....that would lead to [u][i][b][!--coloro:#000099--][span style=\"color:#000099\"][!--/coloro--]MAJOR[!--colorc--][/span][!--/colorc--][/b][/i][/u] problems....lol...

Share this post


Link to post
Share on other sites
That and the fact that I know I personally would not want to spend weeks coding a set of scripts that I plan to sell only to have the client download my source and say I changed my mind about buying the scripts. It is so much easier to show them a full working code they can test on my server then when I receive payment send them the actually scripts or install them on their server.

Now if you have pagination problems I would be happy to help you. I could probably figure out a way to get the same result as the site you are looking at, but I can't get their source without them handing it over...not legally anyway...and I don't do the illegal thing.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.