Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in PHP only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
PHP
PERL -> PHP <STDIN> equivalent for PHP CLI
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
jx2
New Member
Join Date:
Feb 2007
Posts:
228
#1
PERL -> PHP <STDIN> equivalent for PHP CLI
Oct 6 '07, 11:57 PM
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
Join Date:
Feb 2007
Posts:
228
#2
Oct 7 '07, 12:10 AM
okey guys
i found it :-) 3 hours:-)
[code=php]
$line = fgets(STDIN);
[/code]
;-)
jx2
Comment
Post
Cancel
pbmods
Recognized Expert
Expert
Join Date:
Apr 2007
Posts:
5821
#3
Oct 7 '07, 12:39 AM
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
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment