|
Posted by Greg N. on 06/27/05 00:46
Lauri Raittila wrote:
> And very nice indeed.
hey, thanks! :)
> Is it application, in sence that you have some program
> that you use to output it? I would be really interested...
The mechanics are all coded in PHP. I run all pages through the
interpreter locally, and upload the resulting HTML.
The intent is to keep the source as simple as possible. My pages use a
very limited number of php functions and a very limited set of html. My
source code for a typical page looks like this:
--------------------------------------------------------
<?php
$h1 = "header 1 text";
$h2 = "header 2 text";
$h3 = "header 3 text";
?>
<?php include "header.ph" ?>
<p>some text
<?php img('img/050521/i2436.jpg', 'class=right') ?>
<h4>a h4 title</h3>
<p>some more text
<?php img('img/050521/i2436.jpg', 'class=left') ?>
<p>again some more text
<?php banner('img/050522/i2442.jpg') ?>
<p>and again some more text
<?php include "trailer.ph" ?>
--------------------------------------------------------
My php functions and includes do all the back-breaking work, like
determining the image height and width, finding out if a large version
of the thumbnail exists, inserting the appropriate link to the blow up
page.
Navigation:
[Reply to this message]
|