Why does my http_build_url () function Report an error ;? Phpechohttp_build_url (& quot; user@www.example.compubindex.php? AB # files & quot;, & nbsp; array (& nbsp; & quot; scheme & quot; & gt; & quot why does my http_build_url () function Report an error?
Echo http_build_url ("http: // user@www.example.com/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
);
?>
In the manual, no configuration is required and can be used directly. Why does my error cause Fatal error: Call to undefined function http_build_url () in E: \ wamp \ www \ sometimeExa \ buw._url.php on line 2
------ Solution --------------------
(PECL pecl_http> = 0.21.0)
------ Solution --------------------
Http_build_url
(PECL pecl_http: 0.21.0-1.5.5)
------ Solution --------------------
Http://pecl.php.net/* nix
Windows http://downloads.php.net/pierre/
------ Solution --------------------
The http_build_url function is affiliated with the pecl_http extension.
The extension of the PECL series does not belong to the php Standard configuration series and cannot be maintained by the php development organization.
If you do not have special requirements, do not use the PECL extension. If it is used, you need to pay close attention to the developer's website to promptly update and eliminate bugs.