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!