[thelist] php include

Martyn Haigh martyn.haigh at virgincosmetics.com
Wed Jan 22 10:25:01 CST 2003


I used the exact same code structure but in ASP.  I've also got it so it
handles CSS Files, JS Files and also inline CSS, inline JS and onload
elements.  But this structured code has been working for me for ages.

Would like to hear if anyone has the same thing but has made any additional
improvements upon it!

M



Martyn Haigh

Site Developer


<snip
<?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
?>
</snip>


DISCLAIMER: The information in this email is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this email by
anyone else is unauthorised. If you are not the intended recipient, any
disclosure, copying, distribution or any action taken or omitted to be taken
in reliance on it, is prohibited and may be unlawful.





More information about the thelist mailing list