The gopher protocol, as defined by » RFC 1436, is generally considered the ancestor of the modern HTTP protocol. However, gopher was also intended to provide references to non-gopher resources including telnet, wais, nntp, and even http. This extension adds gopher support to PHP's URL Wrappers, and provides a helper function gopher_parsedir() to make sense of gopher formatted directory listings.
Prerequisite: PHP 4.3.0 or higher.
Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: » http://pecl.php.net/package/net_gopher
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.
|1||A resource containing a gopher formatted directory listing.|
|4||A BinHex encoded binary file.|
|5||A DOS formatted binary archive.|
|6||A UUEncoded file.|
|9||A generic binary file.|
|255||An Informational entry|
|254||A reference to an HTTP resource.|
|-1||An unrecognized entry.|
Table of Contents