note 43730 added to function.mysql-connect
| From: | francois at bonzon dot com | Date: | Thu, 01 Jul 2004 14:37:01 +0000 |
| Subject: | note 43730 added to function.mysql-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-72263@lists.php.net to get a copy of this message | ||
If you set default values, for example in an .htaccess file with the code below, then you don't
even need to call mysql_connect() at all. PHP will do it automatically as it receives its first
MySQL query.
php_value mysql.default_host localhost
php_value mysql.default_user alice
php_value mysql.default_password secret
----
Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+43730
Delete -- http://master.php.net/manage/user-notes.php?action=delete+43730&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+43730&report=yes
Search -- http://master.php.net/manage/user-notes.php