HELP... How do you access information piped into a php script...
like cat | test.php
I cant get this to work.. I found a article on this but it didnt work like the person said..
This is how I did it, hope this helps!
$data = "list.file"; $afile = file($data); for($num = 0; $num < count($afile); $num++) { $bfile = explode("|",$afile[$num]); print "<a href=\"$bfile[1]\">$bfile[0]</a><br>"; }
Read the manual about fopen(). It tells you how to open the stdin as a file.