php man page for apc_delete_file

Query: apc_delete_file

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

APC_DELETE_FILE(3)							 1							APC_DELETE_FILE(3)

apc_delete_file - Deletes files from the opcode cache

SYNOPSIS
mixed apc_delete_file (mixed $keys)
DESCRIPTION
Deletes the given files from the opcode cache.
PARAMETERS
o $keys - The files to be deleted. Accepts a string, array of strings, or an APCIterator object.
RETURN VALUES
Returns TRUE on success or FALSE on failure. Or if $keys is an array, then an empty array is returned on success, or an array of failed files is returned.
EXAMPLES
Example #1 apc_delete_file(3) example <?php $filename = 'file.php'; if (apc_compile_file($filename)) { if (apc_delete_file($filename)) { echo "Successfully deleted file $filename from APC cache.", PHP_EOL; } } if (apc_compile_file($filename)) { if ($good = apc_delete_file(array($filename, 'donotexist.php'))) { var_dump($good); } } $bad = apc_delete_file('donotexist.php'); var_dump($bad); ?> The above example will output something similar to: Successfully deleted file file.php from APC cache. [Mon May 24 09:30:33 2010] [apc-warning] Could not stat file donotexist.php, unable to delete from cache. in /tmp/test.php on line 13. array(1) { [0]=> string(14) "donotexist.php" } [Mon May 24 09:30:33 2010] [apc-warning] Could not stat file donotexist.php, unable to delete from cache. in /tmp/test.php on line 18. bool(false)
SEE ALSO
apc_clear_cache(3), apc_delete(3), apc_exists(3). PHP Documentation Group APC_DELETE_FILE(3)
Related Man Pages
apc_fetch(3) - php
wincache_ucache_get(3) - php
apc_exists(3) - php
wincache_ucache_add(3) - php
wincache_ucache_delete(3) - php
Similar Topics in the Unix Linux Community
Installing PHP on Solaris (Express) Error
Stress testing php files at Unix/Linux Command line
Script to run php script on multiple website domains
Replacing char in filename scripts fails
Modification to awk command