PHP web代理或网站转发

PHP web代理或网站转发,php,web-applications,Php,Web Applications,大家好!我在访问facebook等网站时遇到一些问题,所以我需要使用PHP的web代理。我已经寻找了许多开源web代理,但我更喜欢自己编写。我想这样做: http://www.mysite.com/facebook (which is located in remote server) should open http://www.facebook.com , but it should not just open it, the requests must be done using IP a

大家好!我在访问facebook等网站时遇到一些问题,所以我需要使用PHP的web代理。我已经寻找了许多开源web代理,但我更喜欢自己编写。我想这样做:

http://www.mysite.com/facebook (which is located in remote server)
should open http://www.facebook.com ,
but it should not just open it,
the requests must be done using IP address of remote server.
我该怎么办呢?

我想这会有帮助的 zend2.com


facebook使用SSL连接,因为某些php代理无法访问facebook

请尝试使用函数fsock。 您可以从这个简单的代理中学习

考虑到所有关于机器人威胁Facebook的新闻,这个问题有点不祥。@MikeB Nice one:)但从我今天读到的,听起来更像是吓唬Facebook广告商的假账户。@MikeB你是什么意思?我听不懂你的话?