Re: [PHP] Comparing string to array

2007-06-18 Thread Larry Garfield
Perhaps you're looking for in_array()? On Monday 18 June 2007, Richard Davey wrote: > Hi all, > > Ok it's 2am, my brain has gone to mush and I am having trouble > figuring out an easy way to do this, can anyone shed some light? > > Take a peek at the following code: > > // START > > print_r(

[PHP] Date

2007-06-18 Thread Ron Piggott
If $expiry_date = "2007-10-17"; How do I add 7 days to this? I know the strtotime("+7 days"); command, but don't know how to make it work with a date that isn't today. (Please respond directly to my e-mail address) Ron

Re: [PHP] Date

2007-06-18 Thread Robert Cummings
On Mon, 2007-06-18 at 21:57 -0400, Ron Piggott wrote: > If > > $expiry_date = "2007-10-17"; > > How do I add 7 days to this? I know the strtotime("+7 days"); command, > but don't know how to make it work with a date that isn't today. You would do: strtotime( '+7 days', $time ); The $time

Re: [PHP] Date

2007-06-18 Thread Larry Garfield
On Monday 18 June 2007, Robert Cummings wrote: > On Mon, 2007-06-18 at 21:57 -0400, Ron Piggott wrote: > > If > > > > $expiry_date = "2007-10-17"; > > > > How do I add 7 days to this? I know the strtotime("+7 days"); command, > > but don't know how to make it work with a date that isn't today. > >

[PHP] RE: [Updated] Previous and Next Month and Year

2007-06-18 Thread Keith Spiller
Hi Guys, RE: [Updated] Previous and Next Month and Year Here is part of my code: $month = 6; // Current month value, but changes changes with next/prev links. // Value used by a mini calendar script "phpcalendar"... // Originally derived via: $month = date('n', time()); // And updated wi

Re: [PHP] RE: [Updated] Previous and Next Month and Year

2007-06-18 Thread Robert Cummings
On Mon, 2007-06-18 at 21:36 -0600, Keith Spiller wrote: > Hi Guys, > > RE: [Updated] Previous and Next Month and Year > > Here is part of my code: > > $month = 6; > // Current month value, but changes changes with next/prev links. > // Value used by a mini calendar script "phpcalendar"...

Re: [PHP] Php script diagnostic app?

2007-06-18 Thread Guillaume Theoret
Thanks a lot for that post Paul. It brings up a question though. You said to never ever use that on a production server (an important disclaimer!) so I was wondering what people here used to log and simulate loads. I've used OpenSTA ( http://opensta.org/ ) and I was pleased with the results but i

Re: [PHP] Re: php framework, large site

2007-06-18 Thread Crayon Shin Chan
On Tuesday 19 June 2007 09:12, Nathan Nobbe wrote: > it seems to me most people use the terms flavor and distribution > interchangeably when referring to linux. Yeah and most people forget that linux (the kernel) is only a tiny part of a "linux distribution". > although gentoo linux [the only o

Re: [PHP] Re: php framework, large site

2007-06-18 Thread Crayon Shin Chan
On Tuesday 19 June 2007 09:35, Robert Cummings wrote: > Ah but it is quite possible that the OP will go ahead and try to build > a framework, he may fail miserably, all the while learning from his > mistakes. Then he may try again and subsequently build a kickass > framework. In the pragmatic wo

Re: [PHP] Re: php framework, large site

2007-06-18 Thread Robert Cummings
On Tue, 2007-06-19 at 13:41 +0800, Crayon Shin Chan wrote: > On Tuesday 19 June 2007 09:35, Robert Cummings wrote: > > > Ah but it is quite possible that the OP will go ahead and try to build > > a framework, he may fail miserably, all the while learning from his > > mistakes. Then he may try agai

<    1   2