ok,
when you right click a page and select "View Source" on a page that has php coding in its script and it doesnt show.
can anyone tell me a program (if exists) that could expose that coding?
reading php files in the selection view source
Moderators: egami, macek, gesf
- swirlee
- Moderator
- Posts: 2257
- Joined: Sat Jul 05, 2003 1:18 pm
- Location: A bunk in the back
- Contact:
CHUBBYCAT wrote:ok,
when you right click a page and select "View Source" on a page that has php coding in its script and it doesnt show.
can anyone tell me a program (if exists) that could expose that coding?
Nope, it's not possible. Fortunately. The source code of a PHP script is never sent to the browser. Unless you have serious security problems.
another words,
set your internet security on low.
set your internet security on low.
- swirlee
- Moderator
- Posts: 2257
- Joined: Sat Jul 05, 2003 1:18 pm
- Location: A bunk in the back
- Contact:
CHUBBYCAT wrote:another words,
set your internet security on low.
What? This has nothing to do with it. As long as your script is being parsed by PHP, the code will never get sent to the browser, no matter what. This is the intended behaviour, and good. If it didn't work that way, your scripts wouldn't work and your HTML wouldn't dispay right.
that doesn't stop View Source though... on the menu, View > Source
Andrew
Andrew
Why bother with all of that, even if you disable view source, you can still view the source! You can use lynx hard request piped into text file and the code is all there, dont bother yourself with any kind of user-side disabling anything, just use a server-side language and who cares about the html on the other side?
Gotta love PHP!
Gotta love PHP!
So when we use mysql_connect() and the like, including the php file that has the host user and password, no worries?!
Like i've already said... nothing done when we don't even know the difference between both Client and Server sides!
Hey CHUBBYCAT, try a file with .phps extension...
» Hey Swirlee... long time no see...! A hug for you
Hey CHUBBYCAT, try a file with .phps extension...
» Hey Swirlee... long time no see...! A hug for you

Sincerely,
Gonçalo "gesf" Fontoura
gesf.org | sessionstart.com | urlms.com
Gonçalo "gesf" Fontoura
gesf.org | sessionstart.com | urlms.com