Forums

PHP

This topic is locked

how to encrypt a connection string to mysql

Posted 02 Jun 2006 15:30:13
1
has voted
02 Jun 2006 15:30:13 na na posted:
I need to encrypt a connection string to mysql so no one can see user name or password

thanks

Replies

Replied 02 Jun 2006 17:13:12
02 Jun 2006 17:13:12 Roddy Dairion replied:
Can you explain a little bit more??
Replied 02 Jun 2006 20:17:26
02 Jun 2006 20:17:26 na na replied:
this connection info :

<?php
# FileName="Connection_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_mainsqldb = "localhost";
$database_mainsqldb = "adb";
$username_mainsqldb = "root";
$password_mainsqldb = "12345678";
$mainsqldb = mysql_pconnect($hostname_mainsqldb, $username_mainsqldb, $password_mainsqldb) or trigger_error(mysql_error(),E_USER_ERROR);
?>

how to encrypt this so no one can just open the file at the web server
and get the username/password of my database
Replied 04 Jun 2006 16:53:08
04 Jun 2006 16:53:08 Roddy Dairion replied:
Well ders no point to encrypt this connection coz, nobody will have access to this page anyway, unless they have your ftp login and password.

Reply to this topic