APC_BIN_DUMPFILE(3) 1 APC_BIN_DUMPFILE(3)apc_bin_dumpfile - Output a binary dump of cached files and user variables to a fileSYNOPSIS
int apc_bin_dumpfile (array $files, array $user_vars, string $filename, [int $flags], [resource $context = NULL])
DESCRIPTION
Outputs a binary dump of the given files and user variables from the APC cache to the named file.
PARAMETERS
o $files
- The file names being dumped.
o $user_vars
- The user variables being dumped.
o $filename
- The filename where the dump is being saved.
o $flags
- Flags passed to the $filename stream. See the file_put_contents(3) documentation for details.
o $context
- The context passed to the $filename stream. See the file_put_contents(3) documentation for details.
RETURN VALUES
The number of bytes written to the file, otherwise FALSE if APC is not enabled, $filename is an invalid file name, $filename can't be
opened, the file dump can't be completed (e.g., the hard drive is out of disk space), or an unknown error was encountered.
SEE ALSO apc_bin_dump(3), apc_bin_load(3).
PHP Documentation Group APC_BIN_DUMPFILE(3)
Check Out this Related Man Page
WINCACHE_REFRESH_IF_CHANGED(3) 1 WINCACHE_REFRESH_IF_CHANGED(3)wincache_refresh_if_changed - Refreshes the cache entries for the cached filesSYNOPSIS
bool wincache_refresh_if_changed ([array $files = NULL])
DESCRIPTION
Refreshes the cache entries for the files, whose names were passed in the input argument. If no argument is specified then refreshes all
the entries in the cache.
PARAMETERS
o $files
- An array of file names for files that need to be refreshed. An absolute or relative file paths can be used.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
WinCache performs regular checks on the cached files to ensure that if any file has changed then the corresponding entry in the cache is
updated. By default this check is performed every 30 seconds. If, for example, a PHP script updates another PHP script where the applica-
tion's configuration settings are stored, then it may happen that after the configuration settings have been saved to a file, the applica-
tion is still using old settings for some time until the cache is refreshed. In those cases it may be preferrable to refresh the cache
right after the file has been changed. The following example shows how this can be done.
Example #1
A wincache_refresh_if_changed(3) example
<?php
$filename = 'C:inetpubwwwrootconfig.php';
$handle = fopen($filename, 'w+');
if ($handle === FALSE) die('Failed to open file '.$filename.' for writing');
fwrite($handle, '<?php $setting=something; ?>');
fclose($handle);
wincache_refresh_if_changed(array($filename));
?>
SEE ALSO wincache_fcache_fileinfo(3), wincache_fcache_meminfo(3), wincache_ocache_fileinfo(3), wincache_ocache_meminfo(3), wincache_rplist_file-
info(3), wincache_rplist_meminfo(3), wincache_ucache_meminfo(3), wincache_ucache_info(3).
PHP Documentation Group WINCACHE_REFRESH_IF_CHANGED(3)
If I do "ls -l filename" in a script, it should return something like this:
-rw-r--r-- 1 user group 5945 Feb 28 14:24 filename
How do I put each of the above strings into a different variable?
eg Permissions, username, groupname, date (7 Replies)
hi ,
rm -f $(filename)*
removes ,not only $filename* but all the files in the directory .Why??
Imagine I have scripted for some one and a half hour and all the files are removed. F :D rustrated ..really .
regards,
sakthi (4 Replies)
Hi All,
I'm trying to run a simple shell program to change all the files named *.cvs to *.txt. I am trying to use WHILE and this is what I have so far:
This changes the first file from *.cvs to *.txt, but it is not cycling through the other files.
My suspicion is that I don't have the... (5 Replies)
Hi!
Letīs say I want copy dump-files to a location.
These dump-files vary between 80 and 280MB and will be produced in about 1min or less.
I have a cronjob which (not only) copies those.
So how can I find out whether a file is currently produced or not?
Because if my script works with these... (2 Replies)
In a directory I have many *.dat *.f files and also binary files created from Fortran compilation that doesn't have a filename extension.
Is it possible to delete these binary files according to its attributes?
Thanks. (4 Replies)
Hi,
I am trying to use the script as under :
echo "Please input the string (APC) in the format (APC=x-yyy-z):"
read a
for i in m1 m2 m4 m5 m6
do
cat /m12/$i/12* | grep -B 1 -A 1 inaccessible | gawk '/'$a'/{print $6,$7,$8,x};{x=$3" "$4}' | awk NF > temp
cat /m122/$i/12* | grep -B 1 -A 1... (0 Replies)
I want to remove first xx letters from filename_xx . How is that possible using linux. I have many files where xx could be same in many but filename is always unique. Thanks! (1 Reply)
Hi all, I am new to shell scripting so pardon me for the questions I will be asking.
I was given a task where I have to pivot my data
Example
Source
SGPAPCTUMACCHEA
Expected output
SGP APC TUM
SGP APC ACC
SGP APC HEA
Can anybody assist me on this?Please use CODE tags as required... (3 Replies)