Forum Moderators: coopster
<?
// ad #1
$ad1 = '<script type="text/javascript"><!--
google_ad_client = "pub-#*$!xxxxxxx";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_channel ="6639679453";
google_ad_type = "text";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "003333";
google_color_url = "000000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>';
// ad #2
$ad2 = '<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxx";
google_ad_width = 250;
google_ad_height = 250;
google_ad_format = "250x250_as";
google_ad_channel ="6639679453";
google_ad_type = "text_image";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "003333";
google_color_url = "000000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>';
// test cookie, echo ad
if ($cookset == 1)
{
echo $ad1.php;
}
else
{
echo $ad2.php;
}
?>
it works just fine, but after the adsense ad, it displays "php." just "php," right after the code. if I edit adsense.php to just be one adsense ad, it's fine.
what's going on here?
[edited by: jatar_k at 7:30 pm (utc) on Nov. 27, 2004]
[edit reason] generalized [/edit]