Hi,
windows xp sp2, IIS server.
Attempting to run a php script as part of scheduled tasks. The IIS server is running and I have downloaded & installed PHP 5.0 .
When I attempt to run the php script, named as a .wsf file, I get the following message from Windows Script Host

The value for the attribute is not valid :language

obviously it is referring to PHPscript.

The IIS webserver is running fine. It is configured to recognise .php extensions i.e it is pointing to c:\php\php-cgi.exe.

Something is not set somewhere ...

    Is it configured to run WSH files with PHP.exe? Why did you name it with
    a WSH extension? You can not run PHP scripts with WSH.

      Its not .wsh , but .wsf for windows script file.
      Here are the contents of the file:
      <job id="test">

      <script language="PHPScript">
      $WScript->Echo("Hello World!");
      </script>

      </job>

      Another pc is doing the exact same thing and it is working. Somehow the webserver on that pc knows to execute the php script. So it must be a setting somewhere.

        it has nothing to do with your webserver, if you want to run php scripts as an activescript (ie; in windows script host) it is done through a different beast all together.

        see here.

          Write a Reply...