Hello,

Around 2:40 in this video (http://www.jcxsoftware.com/jcx/node/2565) it mentions that the Local IIS Project includes a custom php.ini file that gets added to each project. I am using Visual Studio 2010 and VS.php 2.9 on Windows 7 and did not find this to be the case. When I create an IIS project, no php.ini file is included and the config defaults to (on my 64 bit system):

C:\Program Files (x86)\Jcx.Software\VS.Php\2010\Php 5.3\php.ini

If you create a simple index.php with a call to phpinfo(), you will get an error because the timezone in C:\Program Files (x86)\Jcx.Software\VS.Php\2010\Php 5.3\php.ini is not set. I like the idea of having a custom php.ini for each project so I came up with a work around. Here is what I did:

1. Copy the default php.ini to the IIS project template folder by copying:

C:\Program Files (x86)\Jcx.Software\VS.Php\2010\Php 5.3\php.ini

- to -

C:\Program Files (x86)\Jcx.Software\VS.Php\2010\ProjectTemplates\iis_files\php.ini

2. Edit the default php.ini file (C:\Program Files (x86)\Jcx.Software\VS.Php\2010\Php 5.3\php.ini) adding this line:

user_ini.filename = "php.ini"

3. Add your timezone to the template php.ini file (C:\Program Files (x86)\Jcx.Software\VS.Php\2010\ProjectTemplates\iis_files\php.ini). In my case:

date.timezone = America/New_York

That's pretty much it. Now you get a working phpinfo() for new projects and a custom php.ini file in your project directory. Note that you need to recycle the site's application pool whenever you make changes to php.ini.

There is probably a better way to do this but so far, this is the best I have come up with.

Thanks for great product. It's working out great for me. Please continue supporting IIS. I personally am an Apache fan but in my company, IIS is the primary language the networking team speaks. :-)

Rick