example

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunSimplePhpScript

func RunSimplePhpScript(
	serverNetwork string,
	serverAddress string,
	scriptFilePath string,
) (stdOut []byte, stdErr []byte, err error)

RunSimplePhpScript runs a simple PHP script and gets its output. Only the `SCRIPT_FILENAME` parameter is provided to the PHP script, that is why it is simple. The PHP-CGI server must be started manually before running this function.

func RunSimplePhpScriptAndGetHttpData added in v0.6.0

func RunSimplePhpScriptAndGetHttpData(
	serverNetwork string,
	serverAddress string,
	scriptFilePath string,
) (data *h.Data, err error)

RunSimplePhpScriptAndGetHttpData runs a simple PHP script, gets its output, splits the outpud into HTTP headers and HTTP body. Only the `SCRIPT_FILENAME` parameter is provided to the PHP script, that is why it is simple. The PHP-CGI server must be started manually before running this function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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