The official WindowsAzure documentation introduces how to install AzureSDK in PHP code and access Azure storage: www. windowsazure. comen-usDocumentationArticlesstorage-php-how-to-use-blobs? In fbzh-cn, the method for obtaining BLOB reference is: $ connectionstringdefaendpointsprot
Windows Azure official documentation explains how to install Azure SDK in PHP code and access Azure storage: http://www.windowsazure.com/en-us/Documentation/Articles/storage-php-how-to-use-blobs? In fb = zh-cn, the method for obtaining BLOB reference is: $ connectionString = 'ultendendpointsprot
Windows Azure official documentation describes how to install Azure SDK in PHP code and access Azure storage:
Http://www.windowsazure.com/en-us/Documentation/Articles/storage-php-how-to-use-blobs? Fb = zh-cn
The method for obtaining BLOB reference is as follows:
$connectionString = 'DefaultEndpointsProtocol=[http|https];AccountName=[yourAccount];AccountKey=[yourKey]'// Create blob REST proxy.$blobRestProxy = ServicesBuilder::getInstance()->createBlobService($connectionString);
To connect to China, we can change connectionstring
$connectionString = "BlobEndpoint=https://[yourAccount].blob.core.chinacloudapi.cn/;QueueEndpoint=https://[yourAccount].queue.core.chinacloudapi.cn/;TableEndpoint=https://[yourAccount].table.core.chinacloudapi.cn/;DefaultEndpointsProtocol=[http|https];AccountName=[yourAccount];AccountKey=[yourKey]]";
That is, add the endpoint URL of each storage service to the connection string, and then access the domestic storage.
In addition, the Azure php sdk source code is at https://github.com/windowsazure/azure-sdk-for-php. If you are interested, you can view the source code by yourself.