开发者

Turn on and off pconnect

开发者 https://www.devze.com 2023-03-24 02:11 出处:网络
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?

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

精彩评论

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