服务器上,并将workernman版本换成了linux后出现一下问题:
Fatal error: Class 'PDO' not found in /home/wwwroot/conduit/web/GatewayWorkerDbConnection.php on line 1581
WORKER EXIT UNEXPECTED E_ERROR Class 'PDO' not found in /home/wwwroot/conduit/web/GatewayWorker
下用telnet测试正常,部署到Linux上后,出现报错
`Fatal error: Call to undefined function curl_init() in /home/muyy/文档/GatewayWorkerEvent.php on line 41
WORKER EXIT UNEXPECTED E_ERROR Call to undefined function curl_init() in /home/muyy/文档/GatewayWorker
我在webman的Index类中写构造函数,代码如下
<?construct,
然后我再次访问(多次访问)http://127.0.0.1:8787/index/index的时候,此时也不会输出 this is index _construct,说明此时构造函数不再执行8787/user/index的时候,命令行会输出两次
this is user __construct,
当再次(多次)访问时,不会再输出this is user _construct
说明此时的构造函数不在执行如果我们想利用构造函数每次都执行的特点,那么应该如何利用呢?
construct只能显示一个下划线,所以只写了一个