Search:

» PHP scripts | » CSS styling

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 script for delivering simple messages as emails, including spam checking and visitor IP lookup

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 »

SITEMAP script for dynamically generating a corresponding site map, either as displayed XHTML or as XML

The SITEMAP script dynamically parses a directory tree and generates a corresponding site map, either as displayed XHTML or as an XML file to be parsed by search engines. This script provides the generating engine of the site map of jonsson.eu.

More »

EQNUM script for the dynamical cross-referencing of equation numbers in a PHP page

The EQNUM script provides the functions eqdef($tag) and eqref($tag) for the automatic generation and referencing of equation numbers in XHTML code, roughly in line with cross referencing in plain TeX. The input argument $tag is a text label 'tagging' the equation, leaving the actual equation numbering decoupled from the running text, thus enabling easily incorporated additions later on without the need for manually re-ordering the references. The eqdef($tag) and eqref($tag) functions provide the server-side engine for the automatic generation of all equation numbers of mathematical hypertext documents found at jonsson.eu.

More »

DAILYQUOTE script, generating a random quote each day

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 »

VIEWSRC script for proper display and (X)HTML:ization of program code

The VIEWSRC PHP script generates XHTML code for displaying "typewriter-styled" (mono-spaced) source code, wrapped in a <div> block which maintains the visual appearance of the page. This script is typically used in order to display the source code within the same page as, say, the documentation, and has the advantage that it does not rely on any Java scripts for dynamic change of contents. The XHTML code generated by the VIEWSRC script conforms to the XHTML 1.0 Strict specification and makes sure that any special characters present in the code are properly html:icized before display.

More »

VIEWIMG script for display and EXIF extraction of images in a coherent way across a web site

The VIEWIMG PHP script generates XHTML code for displaying images and corresponding titles and captions, wrapped in a <div> block which maintains the visual appearance of the page. The script also attempts to extract any present Exif information encoded in the images, such as exposure time, aperture, date and time of original exposure. Typically, the images displayed with the VIEWIMG script are more detailed images relayed via common '<a href="larger_image.jpg">Click for larger image</a>' blocks, but with the advantage that the image is displayed within the context of the actual webpage, without relying on any Java scripts for dynamic change of page contents. The XHTML code generated by the VIEWIMG script conforms to the XHTML 1.0 Strict specification and makes sure that any special characters present in the code are properly html:icized before display.

More »

PHOTOVIEW script for the display of images and contact sheets

The PHOTOVIEW script 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 »

The Cascaded Style Sheets (CSS) used in the visual design of jonsson.eu.

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 »

Return to previous page

Leave a message

Your name:

Your email: (required)

Message:

Generated by ::emailform::

Last modified Saturday 10 Dec 2011