Dynamic Drive Forums
>
General Coding
>
PHP
> command line
Log in
View Full Version :
command line
enetsorber
02-13-2008, 11:36 AM
hi,
does anybody know how i can scanf on the command line
into a string!
midhul
02-13-2008, 11:38 AM
hey,
you can use the fgets();
<?php
$content = fgets(STDIN);
echo $content;
?>
enetsorber
02-13-2008, 11:39 AM
cool awsome
it works thanks again!
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.