[英]php fsockopen is NOT working
I'm trying to ping a domain with a specific query information. 我正在尝试使用特定的查询信息来ping域。
This should be extremely simple BUT it's not working. 这应该是非常简单的,但是不起作用。
So... Why so simple fsockopen php command is not working ?! 所以...为什么这么简单的fsockopen php命令不起作用?
fsockopen('http://www.domain.com/test?q=https://example.com', 80);
Warning: fsockopen() [function.fsockopen]: unable to connect to http://www.domain.com/test?q=https://example.com:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in ... 警告:fsockopen()[function.fsockopen]:无法连接至http://www.domain.com/test?q=https://example.com:80 (无法找到套接字传输“ http”-做到了您在...中配置PHP时忘记了启用它?
fsockopen accept only hostname. fsockopen仅接受主机名。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.