I am developing some web application using XAMPP as the development platform. In one of the function, I got the error, "Undefined http_get() function call". I know it's because the missing of the php_http.dll, so I add the file back into the "ext" directory and uncommented the extension=php_http.dll statement in the php.ini file under the php folder. However, with all the work I done, still the error message keep showing in the browser.
Finally I figure out why, acutally in the folder of Apache, there is also a php.ini file. you need to uncomment the extension=php_http.dll inside there as well. Otherwise no matter what you change in the php folder, the webserver just read the older versionof the file and nothing change.
A small trick, it really took me 2 days to figure out. Time is wasted just like that.
Subscribe to:
Post Comments (Atom)

2 comments:
You need register the dll in windows.
regsvr32 "php_http.dll"
remember to be inside of the "ext" folder in your server and restart your machine.
Post a Comment