function http_build_url()

franco mocci picture franco mocci · Dec 27, 2012 · Viewed 17.2k times · Source

I work with windows 7 using WampServer Version 2.2 php5.3.13

I put my project in www

and during the execution of my project this error is displayed

Fatal error: Call to undefined function http_build_url() in C:\wamp\www

in the source code of my project I use this syntax

$url = http_build_url($url);

I think I need to configure wamp

Answer

Max Yakimets picture Max Yakimets · Dec 27, 2012
  1. Check your extensions folder for php_http.dll file.
  2. If the file is present, check that php_http extension is enabled in your php.ini (or any other included .ini-s)
  3. If the file is absent, either download it separately from http://downloads.php.net/pierre/ or download along with other pecl extensions (you may need a few of them) from http://museum.php.net/php5/pecl-5.2.6-Win32.zip . Adjust your php.ini to enable the extension.
  4. Restart your web-server.