As a newbie to PHP is it in anyway possible for a casual web surfer to
actually get to see the PHP behind my .php file.
E.g.
if index.php contained PHP code to check if the page had been called with a
variable such as "password", is there anyway a public member can get to see
the raw php file and therefore see what the password is?
index.php might be:
if ($_REQUEST[password]="secret") {
Then show one page elseshow another page
}
So if a user visits with
index.php?password=secret
they get to see the secret page.
But as the index.php has to have file permission set so that anyone can read
it, I'm worried that the public can just somehow view the file and learn the
password.
Can someone shed any light on this (assuming it makes sense).
Kind regards
Dave.