Hi,
while working on the update of the de-translation of mysql a few
thoughts come to my mind:
1. I had a look on the Chapter Features/Persistent Database
connections. There should be explicitly stated, when persistent
connections are closed or ending: webserver or/and database
server shutdown. I think, this point is not clear enough.
2. mysql_pconnect: here also should be mentioned, when persistent
connections are closed.
MySQL-Section:
In general: links to the mysql related settings in php.ini
may be sometimes usefull, e.g. at mysql_pconnect
(php.ini mysql.allow_persistent = On/Off)
Or the general hint (and link)in the description that the behaviour of the
mysql-functions might be influenced by settings in the php.ini
If there are settings for MySQL in php.ini a call to mysql_connect()
(with no parameters) is affected. And this becomes true for all
function calls with no link identifier spezified (but required).
Just my opinion.
Examples:
1. mysql_db_query() is used by some code-examples. This is not
conform with the note at mysql_db_query.
2. one more word on the examples (from the english manual):
mysql_connect("mysql_host", "mysql_login", "mysql_password")
mysql_connect ("kraemer", "marliesle", "secret")
mysql_connect ("localhost", "username", "secret")
mysql_pconnect ("kron", "jutta", "geheim")
mysql_connect('dbhost', 'username', 'password');
mysql_connect("marliesle");
mysql_connect ($host, $user, $password);
mysql_connect('localhost', 'myname', 'secret');
mysql_connect("localhost", "username", "password");
Using always the same syntax may improve understanding?
I prefer the first.
May I clean up exampels in the en-tree?
Friedhelm