|
Does the php.ini file need to be renamed from php.ini.production to php.ini and modified in order to use phpAzure? When using the sample code (shown below) to create a simple container on the live Azure service, I recieve the error message
outlined below... I've uploaded the appropriate web.roleConfig file pointing FastCGI to %RoleRoot%\php\php-cgi.exe (and it does exist),
but never-the-less, it errors out saying it's unable to load cURL.
Is it necessary to modify the php.ini under my PHP install directory and uncomment the line 'extension=php_curl.dll'?
Thanks..
Dustin
Source code:
/** Microsoft_Azure_Storage_Blob */
require_once 'Microsoft/Azure/Storage/Blob.php';
$storageClient = new Microsoft_Azure_Storage_Blob();
$result = $storageClient->createContainer('testcontainer');
echo 'Container name is: ' . $result->Name;
I get the following error:
Fatal error: Uncaught exception 'Microsoft_Http_Transport_Exception' with message 'cURL extension has to be loaded to use Microsoft_Http_Transport_Curl.' in E:\Microsoft\Http\Transport\Curl.php:66 Stack trace: #0
E:\Microsoft\Http\Transport.php(195): Microsoft_Http_Transport_Curl->__construct() #1 E:\Microsoft\Azure\Storage.php(275): Microsoft_Http_Transport::createChannel() #2 E:\Microsoft\Azure\Storage\Blob.php(141): Microsoft_Azure_Storage->performRequest('testcontainer',
'', 'PUT', Array) #3 E:\createContainer.php(13): Microsoft_Azure_Storage_Blob->createContainer('testcontainer') #4 {main} thrown in
E:\Microsoft\Http\Transport\Curl.php on line 66
|