[Q] PHP-CLI on Windows / PHP-GTK favorites.

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

    [Q] PHP-CLI on Windows / PHP-GTK favorites.

    Howdy,

    I PROMISE that I've Googled this... =)

    I've written a PHP script to run from the command line. I can also run
    it from a shortcut on my desktop, etc. and it works great.

    However, I can't remember how to suppress the "DOS box/CLI
    window/Command Interpreter/whatever *you* call it" that appears. I
    recall that there's a switch that one can put in the shortcut/or in a
    batch file to suppress the big black window...

    Also, I've recently become interested in PHP-GTK. Does anyone have some
    favorite sites they'd recommend? I'm looking for real recommendations ,
    not "Google PHP-GTK" ;)

    Thanks,

    - Dan

  • Tim Van Wassenhove

    #2
    Re: [Q] PHP-CLI on Windows / PHP-GTK favorites.

    On 2004-02-02, Dan Tripp <thisIsNot@MyEM ailAddress.com> wrote:[color=blue]
    > However, I can't remember how to suppress the "DOS box/CLI
    > window/Command Interpreter/whatever *you* call it" that appears. I
    > recall that there's a switch that one can put in the shortcut/or in a
    > batch file to suppress the big black window...[/color]

    This is how i did it on my sisters win98 box:
    I have a batch file that contains the commands that need to be executed.
    Then i created a shortcut to that batchfile on the destktop.
    Then i right-clicked on that shortcut, editted the properties:
    second tab(program) close window after completion.


    --

    Comment

    • Dan Tripp

      #3
      Re: [Q] PHP-CLI on Windows / PHP-GTK favorites.

      Tim Van Wassenhove wrote:[color=blue]
      > On 2004-02-02, Dan Tripp <thisIsNot@MyEM ailAddress.com> wrote:
      >[color=green]
      >>However, I can't remember how to suppress the "DOS box/CLI
      >>window/Command Interpreter/whatever *you* call it" that appears. I
      >>recall that there's a switch that one can put in the shortcut/or in a
      >>batch file to suppress the big black window...[/color]
      >
      >
      > This is how i did it on my sisters win98 box:
      > I have a batch file that contains the commands that need to be executed.
      > Then i created a shortcut to that batchfile on the destktop.
      > Then i right-clicked on that shortcut, editted the properties:
      > second tab(program) close window after completion.
      >
      >[/color]

      Ah, looks like I forgot to state that I'm calling the script from cron
      (yes, on a Windows machine).

      - Dan

      Comment

      • Jussi Jumppanen

        #4
        Re: [Q] PHP-CLI on Windows / PHP-GTK favorites.

        If you are using the DOS command.com of the NT cmd.exe then
        the switch you need to use is the /C option.

        COMMAND [[drive:]path] [device] [/E:nnnnn] [/P] [/C string] [/MSG]
        CMD [/X | /Y] [/A | /U] [/Q] [[/C | /K] string]

        For more details see the help for either tools:

        C:\>command.com /?
        C:\>cmd.exe /?

        Jussi Jumppanen
        Author of: Zeus for Windows, Win32 (Brief, WordStar, Emacs) Text Editor
        "The C/C++, Java, HTML, FTP, Python, PHP, Perl programmer's editor"

        Comment

        Working...