Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望能够使用fsockopenPHP 中的 Socks5 连接到远程主机(例如 FTP、SMTP、POP)。
fsockopen
请问我该怎么办?
fsockopen只是打开一个套接字连接。您应该手动创建请求数据包并解析响应以实现Socks5,因为 PHP 中没有内置支持。请参阅此处了解 Socks5 的工作原理。
Socks5
或者,您可以使用类似SOCKS 5 class的东西。