A note:
fopen() can only open pages via http:// if the corresponding wrappers are enabled.
cURL is an optional module which needs to be compiled in the PHP (at least on *nix OSs).
I usually recommend to use socket commands. fsockopen() to the host and then I construct a GET request. You could build a nice little function that can be used in many scenarios.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.