I have a snippet of php code that is in a file. I need to add a small line of html that referes to a javascript. Each time I try and add the code, I get a parse error. I know I am not placing the code in the right place.
The code I am adding needs to be placed between the <head> </head> tags but after the "include" lines within those tags.
Here is the existing php code:
echo "<html>\n";
echo "<head>\n";
echo "<title>$sitename $pagetitle</title>\n";
include("includes/meta.php");
include("includes/javascript.php");
if (file_exists("themes/$ThemeSel/images/favicon.ico")) {
echo "<link REL=\"shortcut icon\" HREF=\"themes/$ThemeSel/images/favicon.ico\" TYPE=\"image/x-icon\">\n";
}
echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n";
include("includes/my_header.php");
echo "\n\n\n</head>\n\n";
themeheader();[/QUOTE]
and here is the html I need to add:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script src="/__utm.js" type="text/javascript"></script>
Can someone help me include this code into the php so that it won't error out?
Thanks for your help.
Mikeyb