Reputation: 49351
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 this? Thanks
Upvotes: 0
Views: 601
Reputation: 43229
$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.
Upvotes: 1