怎么new php的内置对象SoapServer

2025-05-13 06:05:57
推荐回答(2个)
回答1:

把那个connection_timeout=15,改成5

connection_timeout=5,会使连接请求限定在5秒内,但已连接上的慢速传输不受时间限制。

ini_set('default_socket_timeout', 5);会限制整个网络过程在5秒之内

回答2:

$client = new SoapClient
$server = new SoapServer