mike628
mike628

Reputation: 49351

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 this? Thanks

Upvotes: 0

Views: 601

Answers (2)

Jacob
Jacob

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

k102
k102

Reputation: 8079

try using this function

Upvotes: 1

Related Questions