hi, i have huge <head></head> sections that i’d like to be able to have as a separate file…is is possible to have a require or include php function in the <head></head> to replace all the code?
in a separate file called for example head.php [code=php] <head> <title>Title</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> ... </head> [/code]
and on the main page you would go like [code=php] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <?php include "head.php"; ?> <body> ... </body> </html> [/code]
@bokehSep 09.2005 — #I agree as above but putting your includes in a non public directory is best so they don't get indexed by search engines or worse.