Hi,
I have a Zend site (PHP5, etc. all at latest versions) that runs fine under
Windows with XAMPP. We moved the server over to Apache2 on Linux (Ubuntu,
PHP5, Zend 1.6) and most elements work fine, except one of the two Google
AdSense adverts no longer display on some pages....
After investigation we stripped down the problem to a page generated by
layout.phtml that just includes the two adverts. Alas this still only
rendered the top banner advert and not the 2nd column advert. However, if we
'View Source' in the browser the HTML shows the HTML/JS for both ads. IF we
then safe that HTML to either an HTML file served directly by the Apache2
server or via file:// both adverts render fine!
This has us confused, because the HTML from the zend/PHP serving is
*exactly* the same as the page being served through Apache2 that we saved.
So why if the HTML is the same do the two pages (one served through
Zend/PHP/layout.phtml; and one as a straight HTML file) act differently????
:confused:
Here it is the stripped down layout.phtml we are trying for testing:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="cache-control" content="no-cache"/> <!-- tells browser
not to cache -->
<meta http-equiv="expires" content="0"/> <!-- says that the cache
expires
'now' -->
<meta http-equiv="pragma" content="no-cache"/> <!-- says not to use
cached
stuff, if there is any -->
</head>
<body>
HELLO
<script type="text/javascript"><!--
google_ad_client = "...some client id...";
/* BannerTop */
google_ad_slot = "...some slot number...";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br>
<script type="text/javascript"><!--
google_ad_client = "...some client number";
/* SideOneOrange */
google_ad_slot = "...some number...";
google_ad_width = 120;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</body>
</html>
Thanks,
Monika
--
View this message in context:
http://www.nabble.com/Google-ad-doesn%27t-render-on-Apache2-but-does-on-XAMPP-tp19467810p19467810.html
Sent from the Zend Framework mailing list archive at Nabble.com.