Good Morning, Good Nihght......

Started on the old forum in February 2007 · view the original in the archive · old links redirect here

6 replies · 974 views · started 19 years ago · 1 min read

2 participants
A-Y-S Junior · 13 posts #2
<?php

$TimeZone="8"; ////Change the TimeZone accordingly!
$New_Time = time() + ($TimeZone * 60 * 60);

$show_date=date("D dS F, Y",$New_Time); 
$show_time=date("H:i",$New_Time); 
$Hour=date("G",$New_Time);

echo $show_date;
echo"
";
echo $show_time;
echo"
";

////////////////Here you can change the messages, add lines with different hours etc. You could even display a different message every hour.////////////////

if ($Hour <= 4) { echo 'Hello night owl!'; } 

else if ($Hour <= 11) { echo 'Good morning!'; } 

else if ($Hour <= 12) { echo 'Enjoy your lunch!'; }

else if ($Hour <= 17) { echo 'Good afternoon!'; } 

else if ($Hour <= 23) { echo 'Good Evening!'; }

?>
Guest #4

your site dont work External image (may be gone) XML parsing failed: not well-formed (Line: 5, Character: 210)<?xml version="1.0"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="main" title="Risiko Portal"> External image (may be gone) Welcome to our forum! 8 members inside!

Wellcome to Risiko Portal!<br/ Nick: <input name="loguid" format="*x" maxlength="30"/> Password: <input type="password" name="logpwd" maxlength="30"/> <anchor>LOGIN<go href="login.php" method="get"><postfield name="loguid" value="$(loguid)"/><postfield name="logpwd" value="$(logpwd)"/></go></anchor> NOT REGISTER? REGISTER We have 945 members Last member is: asdasdas Most online: 16:17:25 Topics: 1136 Posts: 16358 Number of PMs: 467326

2006 - 2007 Risiko Portal </card> </wml>

kiwi #5

Thank you for info! NOW WORK!!!

Guest #6

is code work only 4 funmobile??coz i had try n it didnt work on my lavalair script..where i shud put dat code...?

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close