Windows Azure and Blob PHP sample

Discussion in 'Cluster Computing' started by gery555, Mar 31, 2012.

  1. #1
    hi

    I deployed a small php program to windows azure which works fine (it connects to sql azure and add/modify/delete rows)

    But now I want to try its blob service.

    I searched some samples and I found these:

    https://github.com/Interop-Bridges/Windows-Azure-Sample-Kit-4-PHP/tree/master/GuestBookUsingBlobs
    https://github.com/Interop-Bridges/...t-4-PHP/tree/master/GuestBookUsingBlobsTables

    I did the necessary modifications (add storage account and key) but after I deployed it into Azure I get "500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed".

    what should I do that the sample work correctly?

    Thanks!
     
    gery555, Mar 31, 2012 IP
  2. gery555

    gery555 Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    hi!

    I tried with the following very simple code:

    <?php
    $blob = new Microsoft_WindowsAzure_Storage_Blob(
        'blob.core.windows.net',
        'storageaccountname',
        'account_key'
    );
    
    $blob->createContainerIfNotExists('kepek');
    
    $blob->listBlobs('kepek');
    
    ?>
    Code (markup):
    But I get the same error!

    Please help me what is wrong?
     
    gery555, Apr 2, 2012 IP
  3. tiffanywilliams12i2

    tiffanywilliams12i2 Peon

    Messages:
    164
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    whats the error log show? my host always had to check error logs
     
    tiffanywilliams12i2, Apr 6, 2012 IP
  4. gery555

    gery555 Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    the error was that I forgot to add the php sdk to it...
     
    gery555, Apr 11, 2012 IP