Hi there, I use adlogger_v1.11 & this is the final code which i have to put it in webpages: <?php if (!$show_ads) $show_ads = file_get_contents("http://mywebsite.com/adlogger/ad_check.php?visitor_ip=$_SERVER[REMOTE_ADDR]&adsclicked=$_COOKIE[adsclicked]"); if ($show_ads == 'y') { ?> <script type="text/javascript"><!-- google_ad_client = "pub-xxxxxxx"; google_ad_width = 336; google_ad_height = 280; google_ad_format = "336x280_as"; google_ad_type = "text_image"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_bg = "7F7F7F"; google_color_link = "F2984C"; google_color_text = "000000"; google_color_url = "FFFF66"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <?php } ?> -------------------------------- above code is not working when i put it into my webpage.this is the error: Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/.blue/myhost/www.mywebsite.com/news.php on line 338 Warning: file_get_contents(http://mywebsite.com/adlogger/ad_check.php?visitor_ip=65.22.87.209&adsclicked=100) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/.blue/myhost/www.mywebsite.com/news.php on line 338 ----------------------------------- I completly created database & instaled Adlogger successfuly . click info section is working greatful but this error comes to me when i put above code in my webpages. what should i do now?which file i have to fix it? is this php code generated by adlogger v1.11 true? thanks in advance!
I found problem is with my hosting! but this php code did the job for me: I found this php code which it's works great! <? if ($_COOKIE['adsclicked'] < 2) { ?> [my Adsense Code] <?php } ?> ------------ Thanks!