How can I access ConfigurationSettings using a PHP Cloud Service on Windows Azure?

依然范特西╮ 提交于 2019-12-01 09:19:44

问题


I'd love to be able to access ConfigurationSettings from within a PHP application in a Windows Azure cloud service (web role), but I can't seem to make it work. I've got this configured in my ServiceDefinition.csdef, and I have the corresponding settings configured in my cscfg files:

<ConfigurationSettings>
    <Setting name="DBSERVER" />
    <Setting name="DBNAME" />
    <Setting name="DBUSERNAME" />
    <Setting name="DBPASSWORD" />
</ConfigurationSettings>

I have tried to do something like RoleEnvironment::getConfigurationSettings() using the "new" PHP SDK, but it doesn't seem to work.

I've searched and searched, but can't find any examples or guidance on how to accomplish this. Pointers or ideas? Thanks!

来源:https://stackoverflow.com/questions/14640989/how-can-i-access-configurationsettings-using-a-php-cloud-service-on-windows-azur

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!