為什麼小弟我的http_build_url()函數會報錯

來源:互聯網
上載者:User
為什麼我的http_build_url()函數會報錯
echo http_build_url("http:[email protected]/pub/index.php?a=b#files",
array(
"scheme" => "ftp",
"host" => "ftp.example.com",
"path" => "files/current/",
"query" => "a=c"
),
HTTP_URL_STRIP_AUTH | HTTP_URL_JOIN_PATH | HTTP_URL_JOIN_QUERY | HTTP_URL_STRIP_FRAGMENT
);
?>
手冊中寫的是無需任何配置,直接使用即可,為什麼我的會報錯Fatal error: Call to undefined function http_build_url() in E:\wamp\www\sometimeExa\bulid_url.php on line 2

------解決方案--------------------
(PECL pecl_http >= 0.21.0)
------解決方案--------------------
http_build_url
(PECL pecl_http:0.21.0-1.5.5)

------解決方案--------------------
http://pecl.php.net/ *nix

http://downloads.php.net/pierre/ windows
------解決方案--------------------
http_build_url 函數隸屬於 pecl_http 擴充
PECL 系列的擴充,不屬於 php 的標準配置系列,不由 php 開發組織維護
如無特殊需要,儘可能的不使用 PECL 擴充。如果使用了,則需密切關注開發人員的網站,以便及時更新和消除 BUG
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.