«
Σureka Factor
Below is the source code to this page. Hence the
reference to recursion both in the image to the right
and the CSS ID selector and image class.
Thanks to Kevin for permission to use the image, and
to the all the contributors and developers at Wikipedia
for their hard work in bringing us a free online resource
of such outstanding quality, and everyone else that
made this series possible.
<?php
// vnav/labs/PHP/eureka.php
$fid = 21; // eureka factor
include('pebbles.php');
$page['h1'] = 'Σureka Factor';
$page['class'] = 'eureka';
$page['title'] = 'Eureka: An Example XHTML/PHP Document';
$page['description'] = 'A sample page that demonstrates ';
$page['description'] .= 'the principles and practices ';
$page['description'] .= 'as described in the PHP Lab ';
$page['description'] .= 'series.';
include('preamble.php');
include('markup.php');
include('files.php');
include('body.php');
doctype();
head(array(
'lists',
'code',
'eureka'
));
body();
navs();
content();
$archy = 'Archimedes';
$quote = 'I have found it!';
$cite = wiki_uri($archy);
$eureka = anchor($cite, cite($archy), $quote);
$mirrors = image('mirrors.jpg', 'mirrors',
null, 'mirrors');
$mindport = 'http://www.mindport.org/';
$recursive = anchor($mindport, $mirrors,
'courtesy Mindport Exhibits');
include('abbr.php');
$ID = code('ID');
$link = rid2link(280);
$Wikipedia = anchor($link->URI, $link->title);
$source = include_code(id2path($fid));
echo <<<_C
<fieldset>
<legend>Eureka!</legend>
<blockquote cite="$cite">
<p>${Q}$quote${_Q}</p>
</blockquote>
$eureka ${ent['mdash']} circa 250 BC
</fieldset>
<p id="recursive">
$recursive
Below is the source code to this page. Hence the
reference to recursion both in the image to the right
and the ${abbr['CSS']} $ID selector and image class.
Thanks to Kevin for permission to use the image, and
to the all the contributors and developers at $Wikipedia
for their hard work in bringing us a free online resource
of such outstanding quality, and everyone else that
made this series possible.
</p>
<div class="code-box">$source</div>
_C;
updated();
footer();
// vnav/labs/PHP/eureka.php
?>
Last updated: Saturday, October 21st, 2006 @ 1:15 AM EDT [2006-10-21T05:15:30Z]

















































































