ActiveScript problem with PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rk

    #1

    ActiveScript problem with PHP

    Hi,

    I just downloaded the windows binary ver. 5.2.6 and extracted the
    contents of zip file in c:\apache\php. I am planning to use it under
    the Windows Script Host and as per the directions I also downloaded
    the activescript dll and registered it based on the following
    recommendation:

    REGEDIT4

    [HKEY_CLASSES_RO OT\.phs]
    @="PHPScript"

    [HKEY_CLASSES_RO OT\PHPScript]
    @="PHPScript"
    "EditFlags"=dwo rd:00000000
    "AlwaysShowExt" =""
    "BrowserFlags"= dword:00000008

    [HKEY_CLASSES_RO OT\PHPScript\sh ell]
    @="Run"

    [HKEY_CLASSES_RO OT\PHPScript\sh ell\Run]

    [HKEY_CLASSES_RO OT\PHPScript\sh ell\Run\command]
    @="wscript.ex e //E:PHPScript \"%1\" \"%2\""

    [HKEY_CLASSES_RO OT\PHPScript\sh ell\Run\ddeexec]

    [HKEY_CLASSES_RO OT\PHPScript\sh ell\Run\ddeexec \Application]
    @="wscript"

    [HKEY_CLASSES_RO OT\PHPScript\sh ell\Run\ddeexec \Topic]
    @="System"


    But when I run this sample code

    <job id="PERLandVBS" >

    <script language="PHPSc ript">
    $WScript->Echo("Hello from phpScript");
    </script>

    </job>

    I get following error:

    Line: 3
    Char: 18
    Error: The value for the attribute is not valid: language
    Code: 80040049
    Source: Windows Script Host

    Any help is really appreciated.

    thanks
    --rk
  • =?iso-8859-1?Q?=C1lvaro?= G. Vicario

    #2
    Re: ActiveScript problem with PHP

    *** rk escribió/wrote (Thu, 31 Jul 2008 19:51:36 -0700 (PDT)):
    [HKEY_CLASSES_RO OT\.phs]
    @="PHPScript"
    >
    [HKEY_CLASSES_RO OT\PHPScript]
    @="PHPScript"
    "EditFlags"=dwo rd:00000000
    "AlwaysShowExt" =""
    "BrowserFlags"= dword:00000008
    >
    [HKEY_CLASSES_RO OT\PHPScript\sh ell]
    @="Run"
    [...]
    <job id="PERLandVBS" >
    >
    <script language="PHPSc ript">
    $WScript->Echo("Hello from phpScript");
    </script>
    >
    </job>

    This site offers slightly different instructions. You can give it a try:





    --
    -- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
    -- Mi sitio sobre programación web: http://bits.demogracia.com
    -- Mi web de humor en cubitos: http://www.demogracia.com
    --

    Comment

    Working...