Re: [PHP] PHP-CLI issue

2009-03-18 Thread Robert Cummings
On Wed, 2009-03-18 at 06:52 -0700, jesse.ha...@arvatousa.com wrote: > private function getSelection() { > > fwrite(STDOUT,"Mode: "); > > $input = strtoupper(fgetc(STDIN)); > > return $input; > > } Use fgets(

RE: [PHP] PHP-CLI issue

2009-03-18 Thread Jesse.Hazen
Rob, Works like a charm! Much appreciated. Thanks, Jesse Hazen -Original Message- From: Robert Cummings [mailto:rob...@interjinn.com] Sent: Wednesday, March 18, 2009 7:24 AM To: Hazen, Jesse, arvato digital services llc Cc: php-general@lists.php.net Subject: RE: [PHP] PHP-CLI

RE: [PHP] PHP-CLI issue

2009-03-18 Thread Robert Cummings
On Wed, 2009-03-18 at 07:10 -0700, jesse.ha...@arvatousa.com wrote: > Rob, > > Thanks for the quick reply. I did try that before, but now my issue is > that the if-else section does not recognize the data as being valid. So, > I changed it to fgets(), and reran, this time using valid data. The > i

RE: [PHP] PHP-CLI issue

2009-03-18 Thread Jesse.Hazen
] Sent: Wednesday, March 18, 2009 7:00 AM To: Hazen, Jesse, arvato digital services llc Cc: php-general@lists.php.net Subject: Re: [PHP] PHP-CLI issue On Wed, 2009-03-18 at 06:52 -0700, jesse.ha...@arvatousa.com wrote: > private function getSelection() { > > fwrite(STD

[PHP] PHP-CLI issue

2009-03-18 Thread Jesse.Hazen
Hi, I am working on building a PHP-CLI 'game' for converting binary/hex/decimal, to better your speed at converting between base number systems. I started on the game class, and created a little menu with user input for different game modes. If the user inputs invalid data, the script is suppos