!!!! IF YOU USE THIS CLOCK FROM MY SERVER, DO NOT SET REFRESH LOWER THAN 300 !!!!


PHP script for a real time clock for picture objects in ActiveWorlds

Usage description :

====== On your server ======

Copy this PHP script to any folder on your server, I use "oct31.org/clock/clock.php" here (ViewView)

You probably have to modify the texture path in line 8 of the script before you upload it!

Some PHP installations (XITAMI?) seem to issue warnings about missing variables if the command line argument isn't present, in this case add the following line to your script, somewhere near the header() function :
error_reporting (21);

====== In AW ======

Create a zpict2.rwx (2 examples) :
 create picture oct31.org/clock/clock.php?typ=4&cc=FFFFFF&hc=0000ff update=600
create picture oct31.org/clock/clock.php?img=avface2bl&hs=5 update=600

This is the LAST warning !!!
DO NOT USE AN UPDATE DELAY LOWER THAN 300.
I will consider shorter update intervals as bandwidth theft
and remove the script from here forever !!!


The script has several arguments, all are optional :
Description ExampleDefaultComment
Time difference to VRT vr=-3 vr=0 -
Flag for roman numbers typ=1 typ=0 add 1 to typ
Flag for no numbers typ=2 typ=0 -
Flag for a 24 hours face typ=4 typ=0 -
Hand width modifier hs=15 hs=0 This value adds to the default width
Frame color (hex) fc=d06060 fc=000000 not used when img= is specified
Face color (hex) cc=aaaa00 cc=ffffe0 not used when img= is specified
Hour hand color (hex) hc=123456 hc=d01010 see img=
Minute hand color (hex) mc=123456 mc=f03030 see img=
Text color (hex) nc=000000 nc=800000 see img=
Texture from ObjectPath (best 256x256) img=avface2blno texture Depending on the version of the installed GD library on your server, the script cannot allocate colors when the image is created from a JPG file with too many colors, so all color options might only paint in the nearest color if img= is used.
Here is a list of textures that I uploaded so you can experiment a little.

If you prefer to have a digital clock, it's here, basically it supports all options of the analog one (except for "typ") plus a fnt parameter for TTF fonts.

!!!! SAMPLES AND USEABLE SCRIPT WILL SOMETIMES BE TAKEN DOWN !!!!
Please use other people's ressources carefully !
sample1 sample2
Back to my home
cd / Back to my PHP playground
Back to my ActiveWorlds page
Report problems to me,
please write only in english or german