If you know you are running on an apache server, you could try using a
simple .htaccess file in a (say) etc directory which contains any or all
files you wish to secure.
ie:
/index.php
/etc/config.php
/etc/.htaccess
--index.php
--etc/config.php
$config['db_host']="sql";
$confi
* Miles Thompson ([EMAIL PROTECTED]) [Jan 27. 2002 19:55]:
Hi Miles,
[...]
> $hostname = "12.34.56.78";
> $user = "username";
> $password = "password";
> $dbname = "database";
> and change your connection string as follows:
> include 'params.inc';
> //maybe some other stuff her
>
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-DB] [PHP] PHP and MYSQL Security`
How can I secure my username and password? In 1 of my files, it contains
the following:
$conn = mysql_connect( "12.34.56.78", "username", "password");
mysql_select_db(
At 16:59 -0800 1/27/02, Fred wrote:
>If this file has a .php extension remote users will not have access to the
>variables because the file is parsed by php and they never see the actual
>file contents when requesting the document via the web. If you are
>concerned with users on localhost having
If this file has a .php extension remote users will not have access to the
variables because the file is parsed by php and they never see the actual
file contents when requesting the document via the web. If you are
concerned with users on localhost having access to the file, simply give it
the c
For a start, please don't cross-post.
Secondly, people don't see these files because the PHP engine parses them.
However, you could remove each of the parameters to an include file outside
the web tree and have PHP read it.
Set the include_path in php.ini
Thus in a file named parameters.inc
How can I secure my username and password? In 1 of my files, it contains
the following:
$conn = mysql_connect( "12.34.56.78", "username", "password");
mysql_select_db("database",$conn);
What should I do, so people can't get this information?
Duky
--
PHP General Mailing List (http://w
7 matches
Mail list logo