关于php-epp在CLI下执行时发生错误:Maximum execution time of 300 seconds exceeded,stream_socket_client()设置超时时间【解决方法】

栏目:Linux, PHP技术, 经验分享 作者:小天 点击: 2,995 次

关于Centralnic的php-epp在CLI下执行时发生TCP连接超时问题
库地址:https://github.com/centralnic/php-epp
PHP Fatal error:  Maximum execution time of 300 seconds exceeded in /www/wwwroot/Net/EPP/Protocol.php on line 40

编辑Net/EPP/Client.php文件,在connect()函数最前面加入:

然后再编辑/Net/EPP/Protocol.php,在_fread_nb()函数中搜索行:$info = stream_get_meta_data($socket); 然后在前面加入以下内容:

 



------====== 本站公告 ======------
欢迎使用趣域网域名百科,我们将长期提供域名使用相关知识和投资域名的方法和技巧;并提供主机、服务器的解决问题和网站运营方法。