So I am trying to include a .php file I made that includes the following:
Code:
$arr_images = array('<script type="text/javascript"><!--'. "\n" .
'google_ad_client = "pub-9713982568167945";'. "\n" .
'google_ad_width = 728;'. "\n" .
'google_ad_height = 90;'. "\n" .
'google_ad_format = "728x90_as";'. "\n" .
'google_ad_type = "text";'. "\n" .
'google_ad_channel ="";'. "\n" .
'//--></script>'. "\n" .
'<script type="text/javascript"'. "\n" .
'src="http://pagead2.googlesyndication.com/pagead/show_ads.js">'. "\n" .
'</script>'. "\n", '<img src="http://www.thepartylive.com/banners/BANNER468X60-2.gif" alt="whatever" width="120" height="67" />')
echo array_rand($arr_images);
It is a script that hopefully will randomize between my adsense banner and a 468x60 .gif banner ad of my own.
I uploaded it and used this code in php_includestart:
Code:
ob_start();
require("http://www.volconvo.com/forums/banner.php");
$banner = ob_get_contents();
ob_end_clean();
When I call $banner it seems to find it but the output is:
Code:
$arr_images = array(''. "\n" . '
on my page..(obviousely not working).
So either my code is messed up or I am not linking to it properly.
Anyone want to guess?
Thanks