$responseID = @fopen('php://stdin', 'r') or die('Cannot read stdin');
while (($response = @fgets($responseID, 1024)) !== false) {}
This fails if the user enters a carriage return (it just sits there until you hit CTRL-C).
I need to allow the user to enter either 'y', 'Y', or anything else including "Enter" and it will continue to proceed processing.. what on earth do I do?
Thanx
Phil