|
Posted by Ben Bacarisse on 03/08/06 20:58
On Wed, 08 Mar 2006 17:37:41 +0100, Bob Bedford wrote:
> "Mark@home" <donnersm@home.nl> a écrit dans le message de news:
> 61a0f$440f0265$89781b7f$13050@news1.tudelft.nl...
>> 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.....showing 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.
[Back to original message]
|