Turn on and off pconnect
I can turn php pconnect on and off with a config variable. but how can I tell if it actually is on or off? Is there a command on the server to check t开发者_开发问答his? Thanks
try using this function
$pconnect_allowed = ini_get("mysql.allow_persistent");
mysql.allow_persistent docs and ini_get docs
A boolean ini value of off will be returned as an empty string or "0" while a boolean ini value of on will be returned as "1". The function can also return the literal string of INI value.
精彩评论