PERL -> PHP <STDIN> equivalent for PHP CLI

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jx2
    New Member
    • Feb 2007
    • 228

    PERL -> PHP <STDIN> equivalent for PHP CLI

    i need something like PERL
    Code:
    $in = <STDIN>;
    is there any way to do it in PHP CLI ?

    thanks a lot
    jx2
  • jx2
    New Member
    • Feb 2007
    • 228

    #2
    okey guys
    i found it :-) 3 hours:-)
    [code=php]
    $line = fgets(STDIN);
    [/code]

    ;-)

    jx2

    Comment

    • pbmods
      Recognized Expert Expert
      • Apr 2007
      • 5821

      #3
      Heya, jx2.

      Thanks for posting the solution.

      Glad to hear you got it working! Good luck with your project, and if you ever need anything, post back anytime :)

      Comment

      Working...