![]() |
Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
-----Original Message----- From: gboyce [mailto:[hidden email]] Sent: Friday, September 28, 2007 12:37 PM To: Eric Chadbourne Cc: [hidden email] Subject: Re: php cli Well, what happens if you print $answer? It shows $answer as expected with no additional characters. I also tried playing around with changing cast but no luck. Numbers are fine... - Eric C. #!C:\php\php.exe <?php echo "\nHas Eric been drinking?\n"; $answer = fread(STDIN, 1024); switch ($answer) { case 1: echo "\nthis case works..."; break; case "yes": echo "\nOf course he's been drinking!"; break; case "no": echo "\nYou must be drinking with him!"; break; default: echo "\nYou typed something other than 1."; } sleep(2); ?> - Eric C. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ Discuss mailing list [hidden email] http://lists.blu.org/mailman/listinfo/discuss
![]() |
|
BLU is a member of BostonUserGroups | |
We also thank MIT for the use of their facilities. |