简体   繁体   English

使用SOCKS代理在php中建立套接字连接

[英]Establishing socket connection in php using SOCKS Proxy

I am trying to establish a socket connection in php over a socks 4/5 proxy. 我正在尝试通过袜子4/5代理在php中建立套接字连接。 How Can I achieve that? 我该如何实现?

Thanks in advance. 提前致谢。

Though I have never written any proxy-able code in PHP, (I have in Perl), you need to use the proxy libraries to make your calls to the proxy server so they can be relayed to your destination. 尽管我从未用PHP编写过任何可代理的代码(在Perl中也是如此),但是您仍需要使用代理库来对代理服务器进行调用,以便将它们中继到目的地。

Here is an article which discusses PHP proxying. 这是一篇讨论PHP代理的文章。 http://gdatatips.blogspot.com/2008/09/using-php-client-library-through-proxy.html?m=1 http://gdatatips.blogspot.com/2008/09/using-php-client-library-through-proxy.html?m=1

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM