SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Feb 2006
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    command line parameters

    Hi

    I am trying to pass command line parameters to a php script on the windows platform.

    php.exe myscript.php test

    this works passing the parameter "test", however

    php-win.exe myscript.php test

    this fails, I seem unable to pass the test parameter to php-win.exe. I am using $_SERVER['argv'] to detect arguments

    has anybody done this with php-win.exe??

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    I never figured out what php-win.exe does different thus I never used it.
    Is there a particular reason you need to use php-win.exe?
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  3. #3
    SitePoint Member
    Join Date
    Feb 2006
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    php-win.exe allows you to run a script without a console window. In this case a php-gtk2 GUI script.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •