<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML ><HEAD ><TITLE >is_writable</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="Manual PHP" HREF="index.html"><LINK REL="UP" TITLE="Filesystem Functions" HREF="ref.filesystem.html"><LINK REL="PREVIOUS" TITLE="is_uploaded_file" HREF="function.is-uploaded-file.html"><LINK REL="NEXT" TITLE="is_writeable" HREF="function.is-writeable.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-2"></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" >Manual PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.is-uploaded-file.html" ACCESSKEY="P" >Înapoi</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.is-writeable.html" ACCESSKEY="N" >Înainte</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.is-writable" ></A >is_writable</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN29091" ></A ><P > (PHP 4 , PHP 5)</P >is_writable -- Tells whether the filename is writable</DIV ><DIV CLASS="refsect1" ><A NAME="AEN29094" ></A ><H2 >Description</H2 >bool <B CLASS="methodname" >is_writable</B > ( string filename)<BR ></BR ><P > Returns <TT CLASS="constant" ><B >TRUE</B ></TT > if the <VAR CLASS="parameter" >filename</VAR > exists and is writable. The filename argument may be a directory name allowing you to check if a directory is writeable. </P ><P > Keep in mind that PHP may be accessing the file as the user id that the web server runs as (often 'nobody'). Safe mode limitations are not taken into account. </P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Notã: </B >The results of this function are cached. See <A HREF="function.clearstatcache.html" ><B CLASS="function" >clearstatcache()</B ></A > for more details.</P ></BLOCKQUOTE ></DIV ><DIV CLASS="tip" ><BLOCKQUOTE CLASS="tip" ><P ><B >Indicaþie: </B >As of PHP 5.0.0 this function can also be used with <SPAN CLASS="emphasis" ><I CLASS="emphasis" >some</I ></SPAN > URL wrappers. Refer to <A HREF="wrappers.html" >Anexa L</A > for a listing of which wrappers support <A HREF="function.stat.html" ><B CLASS="function" >stat()</B ></A > family of functionality.</P ></BLOCKQUOTE ></DIV ><P > See also <A HREF="function.is-readable.html" ><B CLASS="function" >is_readable()</B ></A >, <A HREF="function.file-exists.html" ><B CLASS="function" >file_exists()</B ></A >, and <A HREF="function.fwrite.html" ><B CLASS="function" >fwrite()</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.is-uploaded-file.html" ACCESSKEY="P" >Înapoi</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Acasã</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.is-writeable.html" ACCESSKEY="N" >Înainte</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >is_uploaded_file</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.filesystem.html" ACCESSKEY="U" >Sus</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >is_writeable</TD ></TR ></TABLE ></DIV ></BODY ></HTML >