Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

apc_cache_info(3) [php man page]

APC_CACHE_INFO(3)							 1							 APC_CACHE_INFO(3)

apc_cache_info - Retrieves cached information from APC's data store

SYNOPSIS
array apc_cache_info ([string $cache_type = ""], [bool $limited = false]) DESCRIPTION
Retrieves cached information and meta-data from APC's data store. PARAMETERS
o $cache_type - If $cache_type is " user", information about the user cache will be returned. If $cache_type is " filehits", information about which files have been served from the bytecode cache for the current request will be returned. This feature must be enabled at compile time using --enable-filehits. If an invalid or no $cache_type is specified, information about the system cache (cached files) will be returned. o $limited - If $limited is TRUE, the return value will exclude the individual list of cache entries. This is useful when trying to optimize calls for statistics gathering. RETURN VALUES
Array of cached data (and meta-data) or FALSE on failure Note apc_cache_info(3) will raise a warning if it is unable to retrieve APC cache data. This typically occurs when APC is not enabled. CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ |3.0.11 | | | | | | | The $limited parameter was introduced. | | | | |3.0.16 | | | | | | | The " filehits" option for the $cache_type | | | parameter was introduced. | | | | +--------+---------------------------------------------------+ EXAMPLES
Example #1 A apc_cache_info(3) example <?php print_r(apc_cache_info()); ?> The above example will output something similar to: Array ( [num_slots] => 2000 [ttl] => 0 [num_hits] => 9 [num_misses] => 3 [start_time] => 1123958803 [cache_list] => Array ( [0] => Array ( [filename] => /path/to/apc_test.php [device] => 29954 [inode] => 1130511 [type] => file [num_hits] => 1 [mtime] => 1123960686 [creation_time] => 1123960696 [deletion_time] => 0 [access_time] => 1123962864 [ref_count] => 1 [mem_size] => 677 ) [1] => Array (...iterates for each cached file) ) SEE ALSO
APC configuration directives, APCIterator::getTotalSize, APCIterator::getTotalHits, APCIterator::getTotalCount. PHP Documentation Group APC_CACHE_INFO(3)

Check Out this Related Man Page

INI_GET_ALL(3)								 1							    INI_GET_ALL(3)

ini_get_all - Gets all configuration options

SYNOPSIS
array ini_get_all ([string $extension], [bool $details = true]) DESCRIPTION
Returns all the registered configuration options. PARAMETERS
o $extension - An optional extension name. If set, the function return only options specific for that extension. o $details - Retrieve details settings or only the current value for each setting. Default is TRUE (retrieve details). RETURN VALUES
Returns an associative array with directive name as the array key. When $details is TRUE (default) the array will contain global_value (set in php.ini), local_value (perhaps set with ini_set(3) or .htac- cess), and access (the access level). When $details is FALSE the value will be the current value of the option. See the manual section for information on what access levels mean. Note It's possible for a directive to have multiple access levels, which is why access shows the appropriate bitmask values. CHANGELOG
+--------+------------------+ |Version | | | | | | | Description | | | | +--------+------------------+ | 5.3.0 | | | | | | | Added $details. | | | | +--------+------------------+ EXAMPLES
Example #1 ini_get_all(3) examples <?php print_r(ini_get_all("pcre")); print_r(ini_get_all()); ?> The above example will output something similar to: Array ( [pcre.backtrack_limit] => Array ( [global_value] => 100000 [local_value] => 100000 [access] => 7 ) [pcre.recursion_limit] => Array ( [global_value] => 100000 [local_value] => 100000 [access] => 7 ) ) Array ( [allow_call_time_pass_reference] => Array ( [global_value] => 0 [local_value] => 0 [access] => 6 ) [allow_url_fopen] => Array ( [global_value] => 1 [local_value] => 1 [access] => 4 ) ... ) Example #2 Disabling $details <?php print_r(ini_get_all("pcre", false)); // Added in PHP 5.3.0 print_r(ini_get_all(null, false)); // Added in PHP 5.3.0 ?> The above example will output something similar to: Array ( [pcre.backtrack_limit] => 100000 [pcre.recursion_limit] => 100000 ) Array ( [allow_call_time_pass_reference] => 0 [allow_url_fopen] => 1 ... ) SEE ALSO
"How to change configuration settings", ini_get(3), ini_restore(3), ini_set(3), get_loaded_extensions(3), phpinfo(3), ReflectionExten- sion::getINIEntries. PHP Documentation Group INI_GET_ALL(3)
Man Page