You are here: Re: HOw to prevent simple View source to retrieve password « PHP Programming Language « IT news, forums, messages
Re: HOw to prevent simple View source to retrieve password

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация