1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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:

    Code (Text):
    1. <?php
    2. $blob = new Microsoft_WindowsAzure_Storage_Blob(
    3.     'blob.core.windows.net',
    4.     'storageaccountname',
    5.     'account_key'
    6. );
    7.  
    8. $blob->createContainerIfNotExists('kepek');
    9.  
    10. $blob->listBlobs('kepek');
    11.  
    12. ?>
    But I get the same error!

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

    tiffanywilliams12i2 Peon

    Messages:
    165
    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