PHP scripts
The collection of PHP scripts as here released are all in some form or another in use at jonsson.eu, which in fact is entirely run under PHP. I am the author of almost all of the scripts behind jonsson.eu, as I find PHP a quite amusing language to write in. In some way, one can say that PHP has become a sort-of hobby besides the more strictly specified languages I use for my simulators. PHP is simple, loosely typed (which means that you happily can let variables change their type during the execution of a script), yet strict enough to let you write pretty advanced algorithms.
EMAILFORM, Revision 1.16
[29/08/2007]
The EMAILFORM script, written in PHP,
generates XHTML code for a form delivering simple messages
as emails. In addition to merely sending email messages, the script also
performs certain checks to determine whether the message is to be considered
as spam or not, and in the footer of the sent emails, a link for looking up
the sender's IP address is provided.
The EMAILFORM script forms the server-side engine for the messaging form
which may be found at jonsson.eu.
More...
DAILYQUOTE, Revision 1.21
[05/10/2009]
The DAILYQUOTE script generates
XHTML code for displaying quotes handpicked from the
literature, films, newspapers or other sources. The DAILYQUOTE script forms
the server-side engine for the automatic generation of daily quotes found
at the entry page of jonsson.eu (or in the side column of
the page that you currently are reading).
More...
PhotoView, Revision 1.0
[12/11/2006]
A PHP script which dynamically generates XHTML code for displaying
images, in a structure following the directory structure in which the
images are stored.
The script extracts Exif
information encoded in the digital images, such as exposure time,
aperture, date and time of exposure. (This feature depends on the
configuration of the PHP installation of the server; however, if the Exif
support is missing, the script will simply ignore the extraction.)
The script also supports real-time switching between different languages,
altering the labels and switches.
The PhotoView script forms the
server-side engine for the compilations of images you can find in the
photography section of this site.
More...
CSS styling
The philosophy of the styling of jonsson.eu is that no visual formatting whatsoever should be contained in the XHTML code of the site. The visual styling is instead throughout handled using CSS, which besides providing a more portable markup also provides a simple way of coherently switching style of the site. More...