Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Puffin Rock Characters Plush Toy Set
anil1961
Updated:
Nov 7, 2026
Toyota Vitz scp10 For Sale
Lakmal Bandara
Updated:
Nov 4, 2026
Kandy
Welcome all my all new pet shop Bark.lk
dilumrane
Updated:
Nov 2, 2026
Windows RDP Only Rs.500 a month
Blogerwiki
Updated:
Nov 1, 2026
Ad icon
V2ray VPN for Tunneling
hu KANNA
Updated:
Oct 22, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
Computers & Internet
Software Development
Small php Script`s
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="MaD-DoC" data-source="post: 1129779" data-attributes="member: 56284"><p><strong>TIME MESSAGES</strong></p><p></p><p><strong>TIME MESSAGES</strong></p><p><strong></strong></p><p><strong></strong></p><p><strong></strong>[PHP]<?php</p><p></p><p>$TimeZone="8"; ////Change the TimeZone accordingly!</p><p>$New_Time = time() + ($TimeZone * 60 * 60);</p><p></p><p>$show_date=date("D dS F, Y",$New_Time); </p><p>$show_time=date("H:i",$New_Time); </p><p>$Hour=date("G",$New_Time);</p><p></p><p>echo $show_date;</p><p>echo"<br/>";</p><p>echo $show_time;</p><p>echo"<br/>";</p><p></p><p></p><p>////////////////Here you can change the messages, add lines with different hours etc. You could even display a different message every hour.////////////////</p><p></p><p>if ($Hour <= 4) { echo 'Hello night owl!'; } </p><p></p><p>else if ($Hour <= 11) { echo 'Good morning!'; } </p><p></p><p>else if ($Hour <= 12) { echo 'Enjoy your lunch!'; }</p><p></p><p>else if ($Hour <= 17) { echo 'Good afternoon!'; } </p><p></p><p>else if ($Hour <= 23) { echo 'Good Evening!'; }</p><p></p><p>?>[/PHP]</p></blockquote><p></p>
[QUOTE="MaD-DoC, post: 1129779, member: 56284"] [b]TIME MESSAGES[/b] [B]TIME MESSAGES [/B][PHP]<?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"<br/>"; echo $show_time; echo"<br/>"; ////////////////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!'; } ?>[/PHP] [/QUOTE]
Insert quotes…
Verification
Payakata winadi keeyak tibeda?
Post reply
Top
Bottom