函数http_build_url() [英] function http_build_url()

查看:544
本文介绍了函数http_build_url()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Windows 7使用WampServer版本2.2 php5.3.13

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

我将项目放在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);

我认为我需要配置沼泽

推荐答案

  1. 检查扩展文件夹中的php_http.dll文件.
  2. 如果文件存在,请检查您的php.ini(或任何其他随附的.ini-s)中是否已启用php_http扩展名
  3. 如果文件不存在,请分别从 http://downloads.php.net/pierre/下载或可以从 http://museum下载其他pecl扩展名(您可能需要其中的一些扩展名). php.net/php5/pecl-5.2.6-Win32.zip .调整您的php.ini以启用扩展名.
  4. 重新启动您的Web服务器.
  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.

这篇关于函数http_build_url()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆