L. Net_Gopher


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.


Net_Gopher is installed through the usual PECL package installation process.

  • Prerequisite: PHP 4.3.0.

  • $ pear install Net_Gopher

  • Copy the resulting to an appropriate location and add to your php.ini file or load it dynamically in your PHP script using dl("");

Runtime Configuration

This extension has no configuration directives defined in php.ini.

Resource Types

This extension has no resource types defined.

Predefined Constants

This extension has no constants defined.




Table of Contents
gopher_parsedir -- Translate a gopher formatted directory entry into an associative array.
© Copyright 2003-2023 The ultimate PHP Editor and PHP IDE site.