Свойство | Type | Description | |
---|---|---|---|
$docroot | path or path alias to directory to serve | ||
$port | port to serve on. | ||
$router | path to router script. See https://secure.php.net/manual/en/features.commandline.webserver.php |
Méthode | Description | |
---|---|---|
actionIndex ( string $address = 'localhost' ) : integer | Runs PHP built-in web server | |
optionAliases ( ) | ||
options ( $actionID ) |
Méthode | Description | |
---|---|---|
isAddressTaken ( string $address ) : boolean |
public actionIndex ( string $address = 'localhost' ) : integer | ||
$address | string | address to serve on. Either "host" or "host:port". |
Résultat | integer |
protected isAddressTaken ( string $address ) : boolean | ||
$address | string | server address |
Résultat | boolean | if address is already in use |