Esempio n. 1
0
<?php

/**
 * Created by PhpStorm.
 * User: ����
 * Date: 2015/8/27
 * Time: 20:08
 * Desc: ����ļ�
 */
use ZPHP\ZPHP;
$rootPath = dirname(__DIR__);
require 'zphp' . DIRECTORY_SEPARATOR . 'ZPHP' . DIRECTORY_SEPARATOR . 'ZPHP.php';
ZPHP::run($rootPath);
Esempio n. 2
0
 public function onWorkerStart()
 {
     //这里require zphp框架目录地址
     opcache_reset();
     require dirname(__DIR__) . DIRECTORY_SEPARATOR . 'ZPHP' . DIRECTORY_SEPARATOR . 'ZPHP.php';
     ///home/wwwroot/www.zphp.com, 是应用的地址
     $this->zphp = ZPHP::run($this->webPath, false, $this->configPath);
     $params = func_get_args();
     //        echo "worker {$params[1]} start".PHP_EOL;
     $this->mimes = (require 'mimes.php');
 }