I have put this problem on the php forum too but I am afraid of it would be an Apache issue maybe. I use http_get function in my php code. When I tr to run the php page on browser I get the next message : Fatal error: Call to undefined function http_get() But when I run my php script from command line there isn't any error message and it works fine. Can somebody help what would be the problem ?
i believe the extension is not enabled. try to check your php setting in httpd.conf is it pointing to the correct php.ini?
Yes the httpd.conf pointed the right php.ini But fortunately the problem is resolved: I noticed on the apache error log this message : Unable to load dynamic library php_http.dll - the specified modul could not be found. However the php_http.dll was the right directory and the setting of the extension_dir was right too. I tried to reinstall apache but it didn't help. I spent a lot of hours to find solution on the web and it seems hundreds and hundreds noticed this bug too but I couldn't find any solution. I used Appserv 2.5.8 (l tried 2.5.9 too) package with PHP 5.2.3 and Apache 2.2.4. At the and I unistalled Appserv and downloaded PHP 5.2.4 and Apache 2.2.4. After the installation my script worked perfectly.
All you had to do was take out the semi-colon (comment flag) from this line in your php.ini file: ;extension=php_http.dll Code (markup): Sorry