note 20600 added to function.mysql-connect
| From: | rec0rder at lycos dot com | Date: | Tue, 09 Apr 2002 15:54:25 +0000 |
| Subject: | note 20600 added to function.mysql-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-29019@lists.php.net to get a copy of this message | ||
The method I use to "protect" mySQL connect is to place dbConnect.php outside the web
directory.
I will create a directory:
/var/include/
Put "dbConnect.php" into
/var/include/
Edit your php.ini file to read "/var/include/" an include directory.
In your PHP now, you just have to do:
require("dbConnect.php");
--
http://www.php.net/manual/en/function.mysql-connect.php
http://master.php.net/manage/user-notes.php?action=edit+20600
http://master.php.net/manage/user-notes.php?action=delete+20600
http://master.php.net/manage/user-notes.php?action=reject+20600