Does any one know why the PECL extension in wamp server does not exists?
I am trying to use the http_build_url()
but I get this error:
Fatal error: Call to undefined function http_build_url() in ...
The function http_build_url()
is part of the PECL extension pecl_http
.
In your WAMP directory locate pecl.exe
and open a command shell. Type: pecl install pecl_http
and the function call should work.
i have found this source of pecl_http package, but dont know how to make it work on wamp as there is no .dll file in there.
This question is old now, so if you want pecl with wamp 2.2, click on the wamp icon, hover over php->php extensions and make sure that php_http has a checkmark next to it. Doing this enabled pecl for me.
I'm using WAMPServer (x64) with PHP5.6.25 & I want to install "Blesta", the requirements need "Pecl - Mailparse", So:
I download "PHP Mailparse v2.1.6 (PHP v5.6)(Thread Safe)(vc11)(x64)"
I extract the download file in "C:\wamp64\bin\php\php5.6.25\ext" folder
- I add "extension=php_mailparse.dll" to file "C:\wamp64\bin\php\php5.6.25\phpForApache.ini" but at the end of "Dynamic Extensions"
- Restart the WAMPServer
- Install "Blesta"
Note for #3 Example:
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
extension=php_openssl.dll
;extension=php_pdo_firebird.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_shmop.dll
extension=php_mailparse.dll
来源:https://stackoverflow.com/questions/4359075/wamp-server-php-extension-pecl-missing