[PHP] date question

2003-11-19 Thread Martin Cameron
$ndays=14; function get_next_dates($ndays) { $today=date("m-d-Y",mktime(0,0,0,date("m"),date("d"),date("Y"))); $forward_date=date("m-d-Y",mktime(0,0,0,date("m"),date("d")+$few_days,date("Y"))); print "$today === $few_days === $forward_date"; for($i=0;$i<$ndays;$i++) { $new_days_array[]=date(

[PHP] Maintaining Session State Across Clusters

2001-03-13 Thread Martin Cameron
Does anyone know if it is possible to maintain session state across a cluster of four web servers? Regards Martin Cameron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] Using

2001-04-23 Thread Martin Cameron
} ?> The thing is that if you simply hit "enter" - rather than click the "submit" button, the first directive in the tag is invoked, and the value of the $hello variable IS passed. regards Martin Cameron

Re: [PHP] Using

2001-04-23 Thread Martin Cameron
; > print ""; > > > and, the var name is $var_hello > > this way, the value of your var do not appear in the URL, > > This work for me... > > > > Martin Cameron wrote: > >> Here is a simple form file that needs to pass a variable -

Re: [PHP] Re: limit items per page

2001-07-23 Thread Martin Cameron
Here's a Quick & Dirty script that I ran up to get a display of 10 items per page with each click on a hyper-linked page returning a new page .. if you know what I mean. I've even included the headers so that any newbies can see the complete script and not just bits. The theory is that the firs

Re: [PHP] User ID's

2001-07-23 Thread Martin Cameron
Try Sessions, bud. That's what they're there for. On Mon, 23 Jul 2001 21:46, you wrote: > Hi all, > I need store all the userid's connected to my site, in a > database. the database, if the user has closed his browser a php script > will check after intervals of a few minutes, if the user i

Re: [PHP] Phone Number #s Only?

2001-08-02 Thread Martin Cameron
Just as the solution to spray paint the m/b green made me smile, this did too. This will strip out all characters except numerals at the beginning, right! martin Cameron On Fri, 03 Aug 2001 11:52, you wrote: > on 8/2/01 5:32 PM, Jeff Oien at [EMAIL PROTECTED] wrote: > > Is there