Skip to main content

PHPRunOptions

Index

Properties

optional$_SERVER

$_SERVER?: Record<string, string>

$_SERVER entries to set for this run.

optionalbody

body?: string | Uint8Array

Request body.

optionalcode

code?: string

The code snippet to eval instead of a php file.

optionalenv

env?: Record<string, string>

Environment variables to set for this run.

optionalheaders

Request headers.

optionalmethod

method?: HTTPMethod

Request method. Default: GET.

optionalprotocol

protocol?: string

Request protocol.

optionalrelativeUri

relativeUri?: string

Request path following the domain:port part.

optionalscriptPath

scriptPath?: string

Path of the .php file to execute.