Re: [nyphp-talk] switch cases

2007-12-01 Thread Jake McGraw
I've found the following useful if you don't want to use a bunch of if / else if but you need to do more than a simple comparison: switch(true) { case ($a=='a') : // Behaves like a normal switch break; case ($a===1) : // Strict check break; case ($a>$b) : // Do whatever test you'd li

Re: [nyphp-talk] switch cases

2007-12-01 Thread David Krings
Ken Robinson wrote: At 12:23 PM 12/1/2007, David Krings wrote: Hi! I make use of a switch statement, but now need to execute the same code of one case for a different case (it is a switch on a file type and some types are to be handled the same). I know how to craft this case using if, but h

Re: [nyphp-talk] switch cases

2007-12-01 Thread Ken Robinson
At 12:23 PM 12/1/2007, David Krings wrote: Hi! I make use of a switch statement, but now need to execute the same code of one case for a different case (it is a switch on a file type and some types are to be handled the same). I know how to craft this case using if, but how would I do that wi

[nyphp-talk] switch cases

2007-12-01 Thread David Krings
Hi! I make use of a switch statement, but now need to execute the same code of one case for a different case (it is a switch on a file type and some types are to be handled the same). I know how to craft this case using if, but how would I do that with using case within a switch? Is it someth

Re: [nyphp-talk] Error from PHP system function

2007-12-01 Thread Rolan Yang
Nelly Yusupova wrote: Here is the command that I'm trying to execute. system ("/usr/bin/wget -P/tmp --post-data 'subscribees=$email&adminpw=$password&send_welcome_msg_to_this_batch=0&send_ notifications_to_list_owner=0' http://www.emdrhap.org/mailman/admin/$list/members/add";, $returnval);

Re: [nyphp-talk] Include vs Include_once

2007-12-01 Thread Daniel Convissor
Hi John: On Fri, Nov 30, 2007 at 08:51:57PM -0800, John Zabroski wrote: > > How do you address the fact __autoload magic method is > part of the global namespace and that when two blocks > of code with the same signature are loaded on demand, > the function closest to the top of the stack is > se