Problem with including PHP in template
Posted: Thu May 24, 2007 3:15 am
Hi I am trying to findout how I would go about including PHP into my template.
I have a file called browser_detect.php
browser_detect.php Works beautifully by itself, BUT I really can't figure out how to include it into CMSms and I tried just placing the code into template BUT nope nothing showed Up.
so if some1 can help me trying to figure out how to include it on my Home page in CMSms ?
Sorry new to PHP soooo having major some probs
I have a file called browser_detect.php
Code: Select all
<?php
if (strstr($_SERVER["HTTP_USER_AGENT"], "MSIE")) {
?>
<center>You seem to be using a version of Internet Explorer. For a safer browsing experience, please consider either the Google Pack, or just FireFox itself:<br/>
<i>
<__script__ type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxx";
google_ad_width = 180;
google_ad_height = 60;
google_ad_format = "180x60_as_rimg";
google_cpa_choice = "xxxxxxxxxxxxxxxxxxxx";
google_ad_channel = "";
//-->
</__script>
<__script__ type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</__script>
</i> <i>
<__script__ type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxxxxxxxxx";
google_ad_width = 180;
google_ad_height = 60;
google_ad_format = "180x60_as_rimg";
google_cpa_choice = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
google_ad_channel = "";
//-->
</__script>
<__script__ type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</__script>
</i>
</center>
<?php
} else {
?>
<?php
}
?>so if some1 can help me trying to figure out how to include it on my Home page in CMSms ?
Sorry new to PHP soooo having major some probs