PHP Classes

File: bin/built-in.php

Recommend this page to a friend!
  Classes of Ahmad Mustapha   PHP Application Server   bin/built-in.php   Download  
File: bin/built-in.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Application Server
Run application with different types of Web server
Author: By
Last change:
Date: 2 years ago
Size: 305 bytes
 

Contents

Class file image Download
<?php

use PHPServer\ServerInfo;
use
PHPServer\Terminal;

require
'vendor/autoload.php';

$arguments = Terminal::performServerChecks(true);

/**@var ServerInfo $serverInfo * */
$serverInfo = $arguments['info'];


if (
null !== $serverInfo->getRequestCallback()) {
   
$serverInfo->getRequestCallback()();
}