Doteasy Tutorial - Scripting - Date and Time
RGNClock: version 1.0
RGNClock has become a very popular graphical clock. With its option to either display in AM\PM or 24-Hour clock set, implementing this site is done with ease. The Clock program takes the current time from your server and displays on the PHP web page.


Installation Procedure 
Quick Tips 



The script can be downloaded from here.


The file that you will download is saved in .zip format; this is a compressed bundle containing the files in the distribution. Unzip this archive in a temporary directory on your computer using decompression software.


Configure your settings by editing the rgnclock.php file using your text editor.

$twentyfourhours = "off";

Basically if you want the time to show as "3:45pm" leave this as is, or if you would like to use the old fashion 24-hour format such as "14:45", change the "off" to "on".

$giflocation = "http://www.mywebsite.com/rgnclock/";

Make sure that this location is accurate as it is the images that the program will display.


Start your FTP software and upload all content to your web server preserving the file structure.

Note: Let's assume you install the contents of the script to /var/www/html/rgnclock/


Congratulations, the installation of Rgnclock is now complete.

You can use the code below to show the time on your page. (For files with .php extensions)

<?php include "rgnclock.php" ?>

Example:
We had setup an index.php page and inserted the above code.


Feel free to add in your own images! The images included are just the basic one and anybody can customize the images to their own.


If you require additional assistance, please feel free to contact our customer service team: https://www.doteasy.com/ContactUs/SMS/

Top