Re: [PHP] print at a specific time

2004-09-02 Thread devil_online
thanks...
On Wed, 1 Sep 2004 22:18:30 -0500, Brent Clements  
[EMAIL PROTECTED] wrote:

Sorry forgot to enclose the variable values. doh!
I needs more coffee!
-Brent
- Original Message -
From: John Holmes [EMAIL PROTECTED]
To: Brent Clements [EMAIL PROTECTED]
Cc: devil_online [EMAIL PROTECTED];  
[EMAIL PROTECTED]
Sent: Wednesday, September 01, 2004 10:12 PM
Subject: Re: [PHP] print at a specific time


Brent Clements wrote:
 $minute = 01;
Be careful with the leading zeros... that's interpreted as an Octal
number by PHP, but Octal 1 == Decimal 1 in this case. :)
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals  www.phparch.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] print at a specific time

2004-09-02 Thread devil_online
thanks
On Wed, 1 Sep 2004 22:18:30 -0500, Brent Clements  
[EMAIL PROTECTED] wrote:



--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] print at a specific time

2004-09-01 Thread devil_online
Hi, I want to print or echo something in a specific time like 9.pm.
how can i do it?

thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] print at a specific time

2004-09-01 Thread John Holmes
devil_online wrote:
Hi, I want to print or echo something in a specific time like 9.pm.
how can i do it?
if(date('H')==21)
{ echo 'tis 9pm and all is well?; }
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals  www.phparch.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] print at a specific time

2004-09-01 Thread devil_online
and to print at minutes too, kije 9h01?

thanks
John Holmes [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 devil_online wrote:

  Hi, I want to print or echo something in a specific time like 9.pm.
  how can i do it?

 if(date('H')==21)
 { echo 'tis 9pm and all is well?; }

 -- 

 ---John Holmes...

 Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

 php|architect: The Magazine for PHP Professionals – www.phparch.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] print at a specific time

2004-09-01 Thread Brent Clements
?php
$hour = 21;
$minute = 01;
if(date('H')==$hour AND date('i')==$minute) 
{ echo tis $hour:$minute and all is well?; }
?

- Original Message - 
From: devil_online [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 01, 2004 9:05 PM
Subject: Re: [PHP] print at a specific time


 and to print at minutes too, kije 9h01?
 
 thanks
 John Holmes [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  devil_online wrote:
 
   Hi, I want to print or echo something in a specific time like 9.pm.
   how can i do it?
 
  if(date('H')==21)
  { echo 'tis 9pm and all is well?; }
 
  -- 
 
  ---John Holmes...
 
  Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
 
  php|architect: The Magazine for PHP Professionals - www.phparch.com
 
 -- 
 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



Re: [PHP] print at a specific time

2004-09-01 Thread John Holmes
Brent Clements wrote:
$minute = 01;
Be careful with the leading zeros... that's interpreted as an Octal 
number by PHP, but Octal 1 == Decimal 1 in this case. :)

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals  www.phparch.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] print at a specific time

2004-09-01 Thread Brent Clements
Sorry forgot to enclose the variable values. doh!

I needs more coffee!

-Brent
- Original Message - 
From: John Holmes [EMAIL PROTECTED]
To: Brent Clements [EMAIL PROTECTED]
Cc: devil_online [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, September 01, 2004 10:12 PM
Subject: Re: [PHP] print at a specific time


 Brent Clements wrote:

  $minute = 01;

 Be careful with the leading zeros... that's interpreted as an Octal
 number by PHP, but Octal 1 == Decimal 1 in this case. :)

 -- 

 ---John Holmes...

 Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

 php|architect: The Magazine for PHP Professionals  www.phparch.com

 -- 
 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