tags:

views:

29

answers:

2

Hello,

I have written web apps with JSP in the past. Now, I'm getting started with PHP. I have a question and a friend of mine who is a .NET developer pointed me to this site.

I downloaded and installed PHP from here. Now, I'm trying to get the Windows Azure for PHP SDKs setup. The reason for this is that my app needs to be hosted in Azure. After I downloaded the SDK, I looked in the install.txt file. The file states that I need to add the library directory to my PHP include_path. My problem is, I do not see an environment variable named "include_path" in my settings. Should one have been created? Is the PHP include_path even an environment variable? Can someone help me out please?

Thank you!

+1  A: 

include_path is a configuration setting usually set in the php.ini file.

Run a PHP script containing

<?php phpinfo(); ?>

to find out which php.ini is actually being used - it can be confusing sometimes.

The INI file will contain the setting, which you can then change.

You will probably need to restart the web server after changes.

I don't know how PHP and Azure work together. If the INI method doesn't apply here, here is the PHP manual section on ways to change PHP config settings other than php.ini.

Pekka
A: 

I would go with a dedicated development system like XAMPP. Although it should be noted that XAMPP should NEVER be used on a production system. It is very insecure and they are very very very slow at patching known vulnerabilities in their stack.

Rook