Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: php cli



 On 9/28/07, Eric Chadbourne <[hidden email]> wrote: 
> I'm playing around on the command line with PHP.  Anybody else here do 
> that?  Does it work reasonably well for simple scripts.  I'm scratching 
> my head on the very first attempt!  Why doesn't this work?  - Eric C. 

I don't know about PHP, but with statements like this in C, the 
operand must resolve to an Integer (a char would be sufficient as 
such).  So, you can't use strings like "yes".  You could possibly do 
case 'y' or case 'n'.  Also, it is probably best to use single quotes 
when you know that the contained parameter will not need to be 
processed using the escape sequencing code that occurs with double 
quotes.  A little tid-bit for you ultimate optimizers out there :-P 
-- 
Kristian Erik Hermansen 

-- 
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
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org