Jump to content


Photo

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


  • Please log in to reply
5 replies to this topic

#1 michellephp

michellephp
  • Members
  • PipPipPip
  • Advanced Member
  • 34 posts

Posted 01 April 2006 - 07:45 AM

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.

#2 azuka

azuka
  • Members
  • PipPipPip
  • Advanced Member
  • 55 posts
  • LocationNigeria

Posted 01 April 2006 - 08:15 AM

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.
Given enough eyeballs all bugs are shallow. My Website

#3 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 01 April 2006 - 11:26 AM

PHP is not like HTML where you can go to anyones site and see their HTML source. With PHP your code is the input (or source code) then the server (PHP intepreter) processes your code and so you end up with the output 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.

#4 michellephp

michellephp
  • Members
  • PipPipPip
  • Advanced Member
  • 34 posts

Posted 01 April 2006 - 11:31 AM

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!!! :(



#5 legohead6

legohead6
  • Members
  • PipPipPip
  • Advanced Member
  • 434 posts

Posted 01 April 2006 - 09:09 PM

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 [!--coloro:#000099--][span style=\"color:#000099\"][!--/coloro--]MAJOR[!--colorc--][/span][!--/colorc--] problems....lol...
"Syntax error" .. WHERE THE **** IS IT?!

#6 txmedic03

txmedic03
  • Members
  • PipPipPip
  • Advanced Member
  • 313 posts
  • LocationCall, TX, USA

Posted 02 April 2006 - 09:17 PM

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.

SEMPER FIDELIS!

I can't stop you from doing something silly, but at least I can help you do it right.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users