Forum Moderators: coopster
<title></title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
##########
with a link to the CSS file or is it better include those tags and link in the header.inc file?
Or one other option is it better to do away with the external CSS file and place the CSS coding right in the header.inc file
How do others do it and does it make a difference to PHP how it is done.
Pat
To take it a step farther, rather than making separate files for header.inc and footer.inc..., the way I generally do it is to make a common.inc.php file that includes functions that include the necessary code for top(), left(), right(), bottom()--plus other functions that are likely to be common to all pages. That way, instead of having to include a zillion single purpose files, you can include one file and call the various functions as appropriate.
A final note: Always name your include files with a PHP parsed extension: e.g., header.inc.php, not header.inc. Otherwise, some curious surfer might request your header.inc file and be able to see your raw code because, as only a .inc file, it won't be parsed by PHP.