Re: mysql_connect
| From: | Marc Koschewski | Date: | Fri, 06 Oct 2000 08:45:19 +0000 |
| Subject: | Re: mysql_connect | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-34362@lists.php.net to get a copy of this message | ||
> I am connecting to a MySQL database to retrieve data (or update data).
> In the PHP page I have the connection information (host, username,
> password). Unfortunately, this information is easily read by anyone
> who views the source of my PHP page. How can I make the connection to
> the MySQL database in some other page or otherwise not expose the
> connection information?
>
> Michael Conley
> IT Manager
> eGroupBenefits.com
>
>
As long as your .PHP files get parsed by your Web server (i. e.
Apache) the users won't see any coded PHP stuff. When your
Web Server does not parse and translate the PHP code in the
.PHP .PHP3 .PHP4 .PHTML files, the user will probably see the
code as it gets send to the Web browser as plain text.
So, the only thing you gotta do is to ensure you have PHP
configured. Then anything is alright and noone will see the access
data!
Marc
Mit freundlichen Gruessen,
marc koschewski
softwareentwicklung
freund & co. gmbh
mollenkotten 195
42279 wuppertal
fon: +49 2 02 / 2 62 78 - 0
fax: +49 2 02 / 2 62 78 - 20
eMail: m.koschewski@freund-co.com
www: http://www.freund-co.com/