I am trying to integrate php scripting into my application using the windows ScriptControl object. VBScript and JScript are working well on a broad variety of platforms including Vista,XP, server 2008r2/2003/2000.
Can not get php scripting to work. This wsf file pops-up a 'hello world' window, but wscript crashes.
<job id="test">
<script language="PHPScript">
$WScript->Echo("Hello World!");
</script>
</job>
and I get this:
On Server 2008r2 and my vista box...
I installed php 5.3.5
copied php5activescript.dll (5.2.7.7) in the php folder
regsvr32 php5activescript.dll (successfully)
found and changed registry key [HKEY_CLASSES_ROOT\CLSID\{CF108A38-59A9-468A-AF45-1368D7855DAE}\InprocServer32] to point to php5activescript.dll not regsvr32.exe. (from http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/d7fb1088-5896-48db-9db8-43739feceaee)
Any thoughts?