Loading ...
Sorry, an error occurred while loading the content.

RE: [Clip] Digest Number 1343

Expand Messages
  • Grant Mackenzie
    Hi Larry. You can run the PHP from the WSH You have to download and reg the dll first. Read ActiveScript section in PHP intall txt example clip library follows
    Message 1 of 2 , Oct 18, 2004
    • 0 Attachment
      Hi Larry.

      You can run the PHP from the WSH
      You have to download and reg the dll first.
      Read ActiveScript section
      in PHP intall txt
      example clip library follows

      = V5 MultiLine NoSorting TabWidth=30

      H="reg"
      ;^!info ^$GetOutput(cscript "^%file%" "^%hostOptions%" -v)$
      ^!set %file%=C:\php\php5activescript.dll
      ^!info ^$GetOutput(regsvr32 "^%file%")$

      H="wsh"
      ^!Set %file%="^$GetScriptPath$atest.wsf"
      ^!TextToFile "^%file%" ^$GetClipText(test)$
      ;get rid of logo
      ^!Set %hostOptions%=^$StrFill(/;2)$nologo
      ^!INFO ^$GetOutput(Wscript "^%file%" "^%hostOptions%")$

      H="test"
      <job id="test">
      <script language="PHPScript">
      $WScript->Echo(PHP_VERSION);
      </script>
      </job>

      > Message: 1
      > Date: Fri, 15 Oct 2004 20:29:11 -0400
      > From: Larry Hamilton <lmh@...>
      > Subject: Re: PHP "IDE" Clips
      >
      > Here are two more, one for showing the version of PHP and the other for
      > doing a syntax check.
      >
      > I got to checking in the PHP Manual and there is a command line
      > interface (CLI) version of PHP in a directory called CLI, and the
      > program is php.exe. It has some options not in the regular exe. You will
      > see in the second clip that the regular exe works for a syntax check on
      > both Windows 2000 and XP, but the CLI does NOT work on XP, it may be an
      > SP2 thing.
      >
      > I will be collecting all these and other PHP related scripts into a new
      > clip library to share soon.
      >
      > H="Show PHP Version"
      > ;10/15/2004 Larry Hamilton lmh@...
      > ^!Set %version%=^$GetOutput("c:\php4\php.exe -v")$
      > ^!INFO ^%version%
      >
      > H="Check PHP Syntax"
      > ;10/15/2004 Larry Hamilton lmh@...
      > ;^!SetDebug On
      > ^!Set %file%=^$GetExpandedName("^**")$
      > ;The following works on both Win2K SP4 and WinXP Home SP2
      > ^!Set %syntax%=^$GetInputOutput("c:\php4\php.exe -l ^%File%")$
      > ;The following works on both Win2K SP4 but NOT WinXP Home SP2
      > ;^!Set %syntax%=^$GetInputOutput("c:\php4\cli\php.exe -l ^%File%")$
      > ^!Info ^%syntax%
      >
      > Larry Hamilton
      > lmh@...
      > My Webpage
      > http://members.tripod.com/~notlimah/index.htm
      >
      >
    • Larry Hamilton
      Grant, Thanks for the information. I knew this could be done, I just have not taken the time to figure it out. I ll have to add these to my collection. Larry
      Message 2 of 2 , Oct 18, 2004
      • 0 Attachment
        Grant,

        Thanks for the information. I knew this could be done, I just have not
        taken the time to figure it out.

        I'll have to add these to my collection.

        Larry Hamilton
        lmh@...
        My Webpage
        http://members.tripod.com/~notlimah/index.htm

        Grant Mackenzie wrote:
        > Hi Larry.
        >
        > You can run the PHP from the WSH
        > You have to download and reg the dll first.
        > Read ActiveScript section
        > in PHP intall txt
        > example clip library follows
      Your message has been successfully submitted and would be delivered to recipients shortly.