I totally see what you mean. When I was sadly trying to help Wolfy, after looking at his .txt file, I gave him:
if (date("G") >= "20" {
which made his PHP puke -- I missed the right parens. Oh well... that's why there's "programmers" and "script kiddies" (I'll be the latter) to help all others get confused, I guess.
Quote:
Originally Posted by GrouchyAdmin
There's no need for the leading zeros. 'G' will work fine. This will work until 11:59, but if you want to get pedantic:
Code:
if (date("G") >= "20" || (date("G") == "0" && date("i") == "00")) {
Hahaha. I love using a text editor that colorizes for me. I've used 'vi' until I switched to KDE, and Kate's my new babe. 
|