[thelist] php include

Daniel Cardenas daniel.cardenas at eurorscg.com
Wed Jan 22 09:41:15 CST 2003


Hi Russell,

Here's something similar I've done on my site. Hope it helps.

PS- I'd love any critique on this code.

-dc

============

<?php
$title ='home'; // title of this page, passed to fileHead.inc
$js  = array('script01.js','script02.js'); // writes js file(s)
$css  = array('stylesheet01.css','stylesheet02.css'); // writes css file(s)
include('!paths.inc'); // file that contains vars that contain paths
relative to this file
include($includesDir . 'fileHead.inc'); // writes file head using 1st 3 vars
?>

<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">

<!-- PAGE HEAD -->
<? include($includesDir . 'pageHead.inc');?> // writes page head content

<!-- PAGE BODY -->
<div id="bodyDiv">
## body content ##  <!-- includes static and dynamic content -->
</div>

<!-- PAGE FOOTER -->
<? include($includesDir . 'pageFooter.inc');?> // writes page footer

</body>
</html>

============




On 03.01.21 23.43, "Russell Griechen" <russgri at bellsouth.net> wrote:

> Please go an look over my includes code and see if I can compress this
> template.
>
> Greenspan and I are changing to templates:
> http://sportsmenafield.com/include_questions.html
>
> I have not figured where to put the includes folder to access it with a
> global call
>
> Russell Griechen
>
>
>
>
>




More information about the thelist mailing list