Adding Curl extension
Posted by: fatbob (---.range86-168.btcentralplus.com)
Date: March 02, 2010 08:28PM

I changed my directory root to Y/folder/ and edited the document root twice in httpd.conf

ticked the php_curl in extensions

loaded config file W:\wamp\bin\apache\Apache2.2.11\bin\php.ini
php.ini has been modified

restarted all services

But under phpinfo Curl is not installed
and extension_dir is listed as C:\php5

Meant to add that php.ini edited to
extension_dir = "W:/wamp/bin/php/php5.3.1/ext/"


I guess its some thing stupid that I have done, but now going round in circles so a little help would be appreciated, Thanks



Server root W:/wamp/bin/apache/Apache2.2.11
Windows 7

If I move the extension_dir = "W:\wamp\bin\php\php5.3.1\ext\" to the top of php.ini, it is now listed correctly using phpinfo(). I might tender the possibility of an error in php.ini that stops it reading the values and accepts the defaults or a clash with windows 7?



Edited 2 time(s). Last edit at 03/03/2010 11:55AM by fatbob.

Options: ReplyQuote
Re: Adding Curl extension -RESOLVED
Posted by: fatbob (---.range86-168.btcentralplus.com)
Date: March 03, 2010 12:06PM

The problem was a syntax error in php.ini

I found it by moving about the extension_dir line from top to bottom of the file and when it reverted to C:/php5 in phpinfo(), I knew the fault lay above it.

If php.ini has a syntax error, it reads to the point of the error and statements beyond this are ignored.

Options: ReplyQuote


Sorry, only registered users may post in this forum.