<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Predefined Constants</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="posix.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="ref.posix.html">POSIX Functions</a></div> <div class="up"><a href="book.posix.html">POSIX</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="posix.constants" class="appendix"> <h1>Predefined Constants</h1> <p class="simpara"> The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime. </p> <dl> <dt id="constant.posix-f-ok"> <span class="term"> <strong><code>POSIX_F_OK</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Check whether the file exists. </span> </dd> </dt> <dt id="constant.posix-r-ok"> <span class="term"> <strong><code>POSIX_R_OK</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Check whether the file exists and has read permissions. </span> </dd> </dt> <dt id="constant.posix-w-ok"> <span class="term"> <strong><code>POSIX_W_OK</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Check whether the file exists and has write permissions. </span> </dd> </dt> <dt id="constant.posix-x-ok"> <span class="term"> <strong><code>POSIX_X_OK</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Check whether the file exists and has execute permissions. </span> </dd> </dt> <dt id="constant.posix-s-ifblk"> <span class="term"> <strong><code>POSIX_S_IFBLK</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Block special file </span> </dd> </dt> <dt id="constant.posix-s-ifchr"> <span class="term"> <strong><code>POSIX_S_IFCHR</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Character special file </span> </dd> </dt> <dt id="constant.posix-s-ififo"> <span class="term"> <strong><code>POSIX_S_IFIFO</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> FIFO (named pipe) special file </span> </dd> </dt> <dt id="constant.posix-s-ifreg"> <span class="term"> <strong><code>POSIX_S_IFREG</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Normal file </span> </dd> </dt> <dt id="constant.posix-s-ifsock"> <span class="term"> <strong><code>POSIX_S_IFSOCK</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> Socket </span> </dd> </dt> </dl> <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para"> These constants are available since PHP 5.1.0. Please also note that some of them may not be available in your system. </p> </p></blockquote> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="posix.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="ref.posix.html">POSIX Functions</a></div> <div class="up"><a href="book.posix.html">POSIX</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>