Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
712 views
in Technique[技术] by (71.8m points)

php - function http_build_url()

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:wampwww

in the source code of my project I use this syntax

$url = http_build_url($url);

I think I need to configure wamp

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
  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.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...