开发者

How could I read from PHP in another host

开发者 https://www.devze.com 2023-03-11 23:45 出处:网络
I have a proxy in our office which close all the trafic from certain ports. It\'s a big office so the Security manager won\'t open any ports. We need some data through the port 9001 which isn\'t opene

I have a proxy in our office which close all the trafic from certain ports. It's a big office so the Security manager won't open any ports. We need some data through the port 9001 which isn't opened.

To bypass this, I put a php script in my server which outputs an XML which needs to be read in my office network. So, I tested at home with a cU开发者_开发知识库rl and worked flawlessly but it seems that now it's grabing nothing.

Tested with var_dump it shows: boolean false with the curl exec

What other methods could I use?


You could set up a VPN on an allowed port and connect through that. That would probably simplify a lot of other stuff as well. OpenVPN is pretty light and straight-forward to set up.


install a proxy on an external host which is listening on port 80 but fetches from port 9001

0

精彩评论

暂无评论...
验证码 换一张
取 消