php

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2018 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileEndpointHandler

func NewFileEndpointHandler(filepath, network, address string) http.Handler

NewFileEndpointHandler returns a fastcgi web server implementation as an http.Handler that referers to a single backend PHP script.

Please note that this handler doesn't handle the fastcgi application process. You'd need to start it with other means.

filepath: the path to the endpoint PHP file. network: network protocol (tcp / tcp4 / tcp6)

or if it is a unix socket, "unix"

address: IP address and port, or the socket physical address of the fastcgi

application.

func NewSimpleHandler

func NewSimpleHandler(docroot, network, address string) http.Handler

NewSimpleHandler returns a fastcgi web server implementation as an http.Handler that functions like a traditional file based PHP hosting.

Please note that this handler doesn't handle the fastcgi application process. You'd need to start it with other means.

docroot: the document root of the PHP site. network: network protocol (tcp / tcp4 / tcp6)

or if it is a unix socket, "unix"

address: IP address and port, or the socket physical address of the fastcgi

application.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL