What I want to do is to use php to make http request, so that I install http extension and it seems successful, because if I run phpinfo(), I can http extension clearly.
But the issue here is that the http function never works, even for the simplest one.
For example, if I tried the following two scenarios:
- echo 1; echo http_request(HTTP_METH_GET,"http://www.google.com");
I will got "1" as return.
- echo http_request(HTTP_METH_GET,"http://www.google.com"); echo 1;
I didn't get anything.
Can anyone help me with it? I have spent too much time on it. - Thanks very much.