PHP-WIN

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

    PHP-WIN

    Ok, I'm using php-win, and have the following file, c:\mail.php

    <?
    mail('email@mya ddress.com','a test','a php-win cli test');
    ?>

    When I go to start|run or cmd and type...

    php-win -f c:/mail.php

    it just sends the mail, no command window popping up or anything.

    I have another file, c:\test.php...

    <?
    exec('start php-win -f C:/mail.php');
    ?>

    Now when I got to start|run or cmd and type...

    php-win -f c:/test.php

    it flashes up (very fast) a command window, obviously thats running the mail
    script. I want this to GO AWAY as it's doing my head in! Anyone know how? I
    thought php-win wasn't supposed to show any cmd windows? Please help, I'm
    desperate!

    Cheers

    Oli/M_O


  • Pedro Graca

    #2
    Re: PHP-WIN

    ["Followup-To:" header set to comp.lang.php.]
    Oli Howson wrote:[color=blue]
    > I have another file, c:\test.php...
    >
    ><?
    > exec('start php-win -f C:/mail.php');
    > ?>
    >
    > Now when I got to start|run or cmd and type...
    >
    > php-win -f c:/test.php[/color]

    Try typing "help start" instead
    [color=blue]
    > it flashes up (very fast) a command window, obviously thats running the mail
    > script. I want this to GO AWAY as it's doing my head in! Anyone know how? I
    > thought php-win wasn't supposed to show any cmd windows?[/color]

    It is not PHP that is opening the new command window. It is the start
    command. You have to tell start to NOT open the command window. "help
    start" will tell you how to do that :)
    --
    USENET would be a better place if everybody read: : mail address :
    http://www.catb.org/~esr/faqs/smart-questions.html : is valid for :
    http://www.netmeister.org/news/learn2quote2.html : "text/plain" :
    http://www.expita.com/nomime.html : to 10K bytes :

    Comment

    • Timothy Fletcher

      #3
      Re: PHP-WIN

      [color=blue][color=green]
      >>it flashes up (very fast) a command window, obviously thats running the mail
      >>script. I want this to GO AWAY as it's doing my head in! Anyone know how? I
      >>thought php-win wasn't supposed to show any cmd windows?[/color][/color]

      in the php-gtk package, there si a programe called php-win.exe. it is
      the same as the php.exe only without the command window.

      HTH
      -Tim

      Comment

      • Timothy Fletcher

        #4
        Re: PHP-WIN

        [color=blue][color=green]
        >>it flashes up (very fast) a command window, obviously thats running the mail
        >>script. I want this to GO AWAY as it's doing my head in! Anyone know how? I
        >>thought php-win wasn't supposed to show any cmd windows?[/color][/color]

        in the php-gtk package, there si a programe called php-win.exe. it is
        the same as the php.exe only without the command window.

        HTH
        -Tim

        Comment

        • Timothy Fletcher

          #5
          Re: PHP-WIN

          [color=blue][color=green]
          >>it flashes up (very fast) a command window, obviously thats running the mail
          >>script. I want this to GO AWAY as it's doing my head in! Anyone know how? I
          >>thought php-win wasn't supposed to show any cmd windows?[/color][/color]

          in the php-gtk package, there si a programe called php-win.exe. it is
          the same as the php.exe only without the command window.

          HTH
          -Tim

          Comment

          • Oli Howson

            #6
            Re: PHP-WIN

            (1) I've tried without using START, I just exec'd php-win.exe without the
            start and it did the same thing.

            (2) If you look through the code I posted in my original email, I was using
            php-win.exe, with php5 it comes as standard alongside php.exe

            Anyone else got an idea???


            "Timothy Fletcher" <tim@wnv.fr> wrote in message
            news:40587B89.2 0706@wnv.fr...[color=blue]
            >[color=green][color=darkred]
            > >>it flashes up (very fast) a command window, obviously thats running the[/color][/color][/color]
            mail[color=blue][color=green][color=darkred]
            > >>script. I want this to GO AWAY as it's doing my head in! Anyone know[/color][/color][/color]
            how? I[color=blue][color=green][color=darkred]
            > >>thought php-win wasn't supposed to show any cmd windows?[/color][/color]
            >
            > in the php-gtk package, there si a programe called php-win.exe. it is
            > the same as the php.exe only without the command window.
            >
            > HTH
            > -Tim[/color]


            Comment

            Working...