Vote
Bury
11

Calendar with colored day

Posted in System by dvil88 71 days ago
This is a simple script in php to get a calendar with today's day colored.



PHP script:

http://pastebin.com/f56e5608f

With this you get a calendar starting in Monday or Sunday with today's date in red, to change the color you only have to change '31' (red) in echo chr(27),'[','31m',$color_day,chr(27),'[','0m';

Here you have a complete guide with commands of ANSI/VT100:

http://www.termsys.demon.co.uk/vtansi.htm

The geeklet is configured to execute the script in /var/calendar.php, you can change it to another directory.

Enjoy it!

Geeklet file(s) to download

phpcal.glet

Either right-click and choose "Save Linked File As..." or hold the Option key and click to download files.
If using Safari, you may have to rename the files without the extra .txt extension that is added.

Comments


Written by Manu78C
49 days ago
test
hello?



Log in to comment or register here.
Geeklets are little bits of text, images or information that you can display on your desktop using the free GeekTool software.
Read more...
Advertisement

Advertise Here

Username:

Password:

Remember: