Re: script

From: Date: Thu, 21 Apr 2005 03:21:02 +0000
Subject: Re: script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-213545@lists.php.net to get a copy of this message
Thank you both, this was indeed helpful. Now for one more question... I'd like to get my code to calculate the time between the current date (when the page is loaded by the visitor) and the very next Tuesday at 11pm. I suspect I can do this with date("w") but I can't quite figure out how to make Tuesday the beginning or end of the week in order to accomplish this... maybe I'm going about this the wrong way. Again, any pointers or assistance appreciated. Tommy On Apr 19, 2005, at 10:34 PM, Rob Agar wrote:
here's the clue to the other half of the puzzle: you can do this kind of thing in php if (whatever) { include 'something.php'; } else { include 'something else.php'; } hth, Rob
-----Original Message----- From: Stephen Johnson [mailto:Freeway@pets4u.com] Sent: Wednesday, 20 April 2005 11:53 AM To: tommy Cc: php-general@lists.php.net Subject: Re: [PHP] script http://php.net/time http://php.net/date http://php.net/mktime one or a combination of these functions will help you do what you want. HTH On Apr 19, 2005, at 6:37 PM, tommy wrote:
I'm hoping someone on this list can help me with something
I've been
struggling with lately... I have a php based web page that I'd like to have load an
include file
only when it is Tuesday 11pm - Weds 1 am Eastern Standard
time (USA).
At other times I would like my page to load and alternate include file. If someone could help me with the code or point me in the right direction it would be very appreciated. Thanks. Tommy. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
********* Stephen Johnson stephen@thelonecoder.com http://www.thelonecoder.com --continuing the struggle against bad code-- ********* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#213545) next »