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