<!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="net-gopher.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="net-gopher.examples.html">Examples</a></div> <div class="up"><a href="book.net-gopher.html">Gopher</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="net-gopher.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> <table class="doctable table"> <caption><strong>Net_Gopher constants</strong></caption> <thead> <tr> <th>Constant</th> <th>Value</th> <th>Description</th> </tr> </thead> <tbody class="tbody"> <tr id="constant.gopher-document"> <td><strong><code>GOPHER_DOCUMENT</code></strong></td> <td>0</td> <td>Standard <em>text/plain</em> document.</td> </tr> <tr id="constant.gopher-directory"> <td><strong><code>GOPHER_DIRECTORY</code></strong></td> <td>1</td> <td>A resource containing a gopher formatted directory listing.</td> </tr> <tr id="constant.gopher-binhex"> <td><strong><code>GOPHER_BINHEX</code></strong></td> <td>4</td> <td>A BinHex encoded binary file.</td> </tr> <tr id="constant.gopher-dosbinary"> <td><strong><code>GOPHER_DOSBINARY</code></strong></td> <td>5</td> <td>A DOS formatted binary archive.</td> </tr> <tr id="constant.gopher-uuencoded"> <td><strong><code>GOPHER_UUENCODED</code></strong></td> <td>6</td> <td>A UUEncoded file.</td> </tr> <tr id="constant.gopher-binary"> <td><strong><code>GOPHER_BINARY</code></strong></td> <td>9</td> <td>A generic binary file.</td> </tr> <tr id="constant.gopher-info"> <td><strong><code>GOPHER_INFO</code></strong></td> <td>255</td> <td>An Informational entry</td> </tr> <tr id="constant.gopher-http"> <td><strong><code>GOPHER_HTTP</code></strong></td> <td>254</td> <td>A reference to an HTTP resource.</td> </tr> <tr id="constant.gopher-unknown"> <td><strong><code>GOPHER_UNKNOWN</code></strong></td> <td>-1</td> <td> An unrecognized entry. </td> </tr> </tbody> </table> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="net-gopher.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="net-gopher.examples.html">Examples</a></div> <div class="up"><a href="book.net-gopher.html">Gopher</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>