I'm Nishimura from Development Department, and I'd like to summarize the result of my research on the requirement of throwing a request through Proxy server in PHP.
With the following code, you can get "https://www.ugtop.com/spill.shtml" through the proxy server located at "tcp://184.108.40.206:8080". That's easy!
The default timeout for file_get_contents is 60 seconds, so be careful to specify an appropriate time depending on your requirements. If you expect it to take a long time to respond, you should set it longer, and if you are using it for life and death check, you should set it shorter.
- How to create an e-learning program? Points to consider when creating an e-learning program
- Hash function, stretching salt
Comment ( 0 )
Trackbacks are closed.