Professional Web Applications Themes

Command line php.... - PHP Development

Technically, yes it should however, I think this is a bug...are you running php 5b? -- BigDog ----- Original Message ----- From: "John Nichel" <jnichelby-tor.com> To: <php-generallists.php.net> Sent: Tuesday, August 05, 2003 9:07 PM Subject: [PHP] Command line php.... > Can someone tell me why php waits for me to input something before it > prints out the first line of the code below? Shouldn't it echo out the > first line then wait for my input? > > #!/usr/local/bin/php > <?php > > echo ( "Enter MySQL admin username : [root] " ); > $username = rtrim ( fgets ...

  1. #1

    Default Re: [PHP] Command line php....

    Technically, yes it should however, I think this is a bug...are you running
    php 5b?

    --
    BigDog


    ----- Original Message -----
    From: "John Nichel" <jnichelby-tor.com>
    To: <php-generallists.php.net>
    Sent: Tuesday, August 05, 2003 9:07 PM
    Subject: [PHP] Command line php....

    > Can someone tell me why php waits for me to input something before it
    > prints out the first line of the code below? Shouldn't it echo out the
    > first line then wait for my input?
    >
    > #!/usr/local/bin/php
    > <?php
    >
    > echo ( "Enter MySQL admin username : [root] " );
    > $username = rtrim ( fgets ( STDIN ) );
    > echo ( "\n\n\nThe username is...." . $username . "!!!!\n\n" );
    >
    > ?>
    >
    >
    > --
    > PHP General Mailing List (http://www.php.net/)
    > To unsubscribe, visit: http://www.php.net/unsub.php
    >
    >

    Ray Hunter Guest

  2. #2

    Default Command line php....

    Can someone tell me why php waits for me to input something before it
    prints out the first line of the code below? Shouldn't it echo out the
    first line then wait for my input?

    #!/usr/local/bin/php
    <?php

    echo ( "Enter MySQL admin username : [root] " );
    $username = rtrim ( fgets ( STDIN ) );
    echo ( "\n\n\nThe username is...." . $username . "!!!!\n\n" );

    ?>

    John Nichel Guest

  3. #3

    Default Re: [PHP] Command line php....

    4.3.2

    Ray Hunter wrote:
    > Technically, yes it should however, I think this is a bug...are you running
    > php 5b?
    >
    > --
    > BigDog
    >
    >
    > ----- Original Message -----
    > From: "John Nichel" <jnichelby-tor.com>
    > To: <php-generallists.php.net>
    > Sent: Tuesday, August 05, 2003 9:07 PM
    > Subject: [PHP] Command line php....
    >
    >
    >
    >>Can someone tell me why php waits for me to input something before it
    >>prints out the first line of the code below? Shouldn't it echo out the
    >>first line then wait for my input?
    >>
    >>#!/usr/local/bin/php
    >><?php
    >>
    >>echo ( "Enter MySQL admin username : [root] " );
    >>$username = rtrim ( fgets ( STDIN ) );
    >>echo ( "\n\n\nThe username is...." . $username . "!!!!\n\n" );
    >>
    >>?>
    >>
    >>
    >>--
    >>PHP General Mailing List (http://www.php.net/)
    >>To unsubscribe, visit: http://www.php.net/unsub.php
    >>
    >>
    >
    >
    >
    >
    >

    --
    By-Tor.com
    It's all about the Rush
    http://www.by-tor.com

    John Nichel Guest

  4. #4

    Default Re: [PHP] Command line php....

    On Wednesday 06 August 2003 11:11, John Nichel wrote:
    > 4.3.2
    Try disabling output buffer in php.ini.

    --
    Jason Wong -> Gremlins Associates -> [url]www.gremlins.biz[/url]
    Open Source Software Systems Integrators
    * Web Design & Hosting * Internet & Intranet Applications Development *
    ------------------------------------------
    Search the list archives before you post
    [url]http://marc.theaimsgroup.com/?l=php-general[/url]
    ------------------------------------------
    /*
    The quantity of the food consumed is in direct ratio to your weight.
    -- For heavy dieters
    */

    Jason Wong Guest

  5. #5

    Default Re: [PHP] Command line php....

    That did it. Thanks.

    Jason Wong wrote:
    > On Wednesday 06 August 2003 11:11, John Nichel wrote:
    >
    >>4.3.2
    >
    >
    > Try disabling output buffer in php.ini.
    >
    John Nichel Guest

Similar Threads

  1. command line or not???
    By Adam Dyga in forum PHP Development
    Replies: 1
    Last Post: November 29th, 05:51 PM
  2. command-line
    By Silverfox in forum PERL Beginners
    Replies: 3
    Last Post: November 2nd, 12:17 PM
  3. RUN/execute a Command-Line command from an ASP page
    By Lucas Cowald in forum ASP.NET Building Controls
    Replies: 1
    Last Post: October 22nd, 04:26 PM
  4. RUN/execute a Command-Line command from an ASP page.
    By Lucas Cowald in forum ASP Components
    Replies: 7
    Last Post: October 22nd, 01:08 PM
  5. More command line php
    By John Nichel in forum PHP Development
    Replies: 1
    Last Post: August 7th, 09:37 AM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139