I'm running server 2008 and have multiple versions of PHP installed. It looks like the initial version was 5.2.14. Then there are 2 more versions, 5.2.17 and 5.3.10 installed. They are in this directory structure:
C:\program files\php - 5.2.14 C:\program files\php\v5.2 - 5.2.17 C:\program files\php\v5.3 - 5.3.10
In IIS, I have set the php version in PHP manager to use 5.3.10.
Everything through iis is working just fine. The problem I'm having is getting 5.3.10 to work through the command line.
I have multiple tasks running which use php as such:
start a program: "C:\Program Files\PHP\php.exe" -f c:\file.php
This runs fine and uses php 5.2.14.
When I try to run a task as:
start a program "C:\Program Files\PHP\v5.3\php.exe" -f c:\file.php
I can get php to work but it seems I'm having issues connecting to the local databases. Is there a way to make the latest version of PHP the default version for command line OR am I missing some files or ini settings to get MySQL to work properly?
Reason is there are certain features I need to use in php 5.3+