PHP HTTP-Request

后端 未结 3 761
囚心锁ツ
囚心锁ツ 2020-12-03 23:07

I have MAMP Pro installed running php 5.2.13. When I try to initialize a HTTP-Request

$r = new HttpRequest(\'http://example.com/\', HttpRequest::METH_GET);
         


        
3条回答
  •  忘掉有多难
    2020-12-03 23:38

    You need to enable the extension ...

    add the following to your php.ini

    extension = php_http.dll
    

    Apparently that was asked a lot:

    http://php.bigresource.com/Track/php-33sNme7A/

提交回复
热议问题