Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > 0afeee9cca140e167a996902b9a677c5 > files > 194

php-manual-en-4.3.0-2mdk.noarch.rpm

<HTML
><HEAD
><TITLE
>clearstatcache</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="PHP Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Filesystem functions"
HREF="ref.filesystem.html"><LINK
REL="PREVIOUS"
TITLE="chown"
HREF="function.chown.html"><LINK
REL="NEXT"
TITLE="copy"
HREF="function.copy.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-1"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.chown.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.copy.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.clearstatcache"
></A
>clearstatcache</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN25081"
></A
><P
>    (PHP 3, PHP 4 )</P
>clearstatcache&nbsp;--&nbsp;Clears file status cache</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN25084"
></A
><H2
>Description</H2
>void <B
CLASS="methodname"
>clearstatcache</B
> ( void)<BR
></BR
><P
>&#13;     When you use <A
HREF="function.stat.html"
><B
CLASS="function"
>stat()</B
></A
>, <A
HREF="function.lstat.html"
><B
CLASS="function"
>lstat()</B
></A
>, or
     any of the other functions listed in the affected functions list (below),
     PHP caches the information those functions return in order to provide
     faster performance. However, in certain cases, you may want to clear the
     cached information. For instance, if the same file is being checked
     multiple times within a single script, and that file is in danger of
     being removed or changed during that script's operation, you may elect to
     clear the status cache.  In these cases, you can use the
     <B
CLASS="function"
>clearstatcache()</B
> function to clear the information
     that PHP caches about a file. 
    </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Note: </B
>
       This function caches information about specific filenames, so you only
       need to call <B
CLASS="function"
>clearstatcache()</B
> if you are performing
       multiple operations on the same filename and require the information
       about that particular file to not be cached. 
     </P
></BLOCKQUOTE
></DIV
><P
>&#13;     Affected functions include <A
HREF="function.stat.html"
><B
CLASS="function"
>stat()</B
></A
>,
     <A
HREF="function.lstat.html"
><B
CLASS="function"
>lstat()</B
></A
>,
     <A
HREF="function.file-exists.html"
><B
CLASS="function"
>file_exists()</B
></A
>,
     <A
HREF="function.is-writable.html"
><B
CLASS="function"
>is_writable()</B
></A
>,
     <A
HREF="function.is-readable.html"
><B
CLASS="function"
>is_readable()</B
></A
>,
     <A
HREF="function.is-executable.html"
><B
CLASS="function"
>is_executable()</B
></A
>,
     <A
HREF="function.is-file.html"
><B
CLASS="function"
>is_file()</B
></A
>,
     <A
HREF="function.is-dir.html"
><B
CLASS="function"
>is_dir()</B
></A
>,
     <A
HREF="function.is-link.html"
><B
CLASS="function"
>is_link()</B
></A
>,
     <A
HREF="function.filectime.html"
><B
CLASS="function"
>filectime()</B
></A
>,
     <A
HREF="function.fileatime.html"
><B
CLASS="function"
>fileatime()</B
></A
>,
     <A
HREF="function.filemtime.html"
><B
CLASS="function"
>filemtime()</B
></A
>,
     <A
HREF="function.fileinode.html"
><B
CLASS="function"
>fileinode()</B
></A
>,
     <A
HREF="function.filegroup.html"
><B
CLASS="function"
>filegroup()</B
></A
>,
     <A
HREF="function.fileowner.html"
><B
CLASS="function"
>fileowner()</B
></A
>,
     <A
HREF="function.filesize.html"
><B
CLASS="function"
>filesize()</B
></A
>,
     <A
HREF="function.filetype.html"
><B
CLASS="function"
>filetype()</B
></A
>, and
     <A
HREF="function.fileperms.html"
><B
CLASS="function"
>fileperms()</B
></A
>.
    </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.chown.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.copy.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>chown</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.filesystem.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>copy</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>