#!/local/bin/php -q "; $input=stdin(); echo "\$input was $input\n"; } while ($input) ; fclose($handle); ?>