开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜