How to check if PHP app running in Dev Fabric or Azure Cloud?

Oct 26, 2009 at 5:42 AM

What is the best way to determine if a PHP application is running within Develoment Fabric or Azure Cloud environment?

I would like to know so when I am creating an instance of class Microsoft_WindowsAzure_Storage_Blob, I want to pass it the correct account (names and keys) based on current environment.


Jeff in Seattle

Oct 26, 2009 at 9:17 AM

This is not the best way to do it, but it works...

    // Initialize SDK with prod key here
    // Initialize SDK with dev key here
I'll check with the Azure team to see if there's a better way.
Oct 26, 2009 at 4:20 PM

Sorry for asking, but where did you find this information that makes this condition referring to Production?


Thanks for the reply

Jeff in Seattle