Lumaktaw patungo sa pangunahing 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 – after any URL rewriting rules (e.g. apache .htaccess) have been applied.

optionalscriptPath

scriptPath?: string

Path of the .php file to execute.

optionalusePrimaryPhp

usePrimaryPhp?: boolean

Run on the primary PHP instance instead of any pooled instance.

Pooled instances see shared paths through a proxy filesystem whose node cache is not invalidated when the primary deletes a file. A job that spans several runs and rewrites its own state files must stay on the primary so every run sees the same filesystem. The run waits for the primary to become free.