On Wed, 08 Mar 2006 17:37:41 +0100, Bob Bedford wrote:
"Mark@home" <do******@home. nl> a écrit dans le message de news:
61************* **************@ news1.tudelft.n l... Can anyone tell me how i can prevent that users can see my connection
string
to mysql database?
Using my browser i could easely use the function: view
source.....show ing the html/php code.
Your php code isn't visible to the html end user. If it is, the code
isn't inside php tags
[top posting fixed]
It is not the <?php...?> marks that do it. Most web servers decide (a)
what type of data is in a file, and (b) what to do with it (PHP processing
in only one option here) based on the file's name. This can include the
directory part, the file extension or whatever.
For example, my local server treats everything in /cgi-bin or anything
ending .cgi as a program to execute and everything ending .php as
requiring PHP processing. The rules are usually set by the system
administrator and *may* be alterable by users on a per-directory basis.
--
Ben.