I would like to know about how to add adsense code on a site having many pages, including shopping cart pages. I hope to hear as many solutions as possible. Thanks.
Do you can as easy as possible? If you create your site with PHP tables, you can create a seperate PHP file (lets say.. a footer.php for an adsense ad) then place that footer file in each of your pages so this ad will appear in each page. I hope that makes sense.. you really gotta know PHP first
Yeah, it makes sense but at the same time learning PHP so fast will be a .... Need more solutions guys!
Hi, It is good to have Adsense Ads scripts embedded in scripts for sidemenu, title, header, footer, etc as pointed by everything.. It helps in updating the scripts very easily.. Regards,
to include adsense via PHP SSI in static HTML pages is easy and needs NO advanced PHP skills - it helps you to centralize all changes in ad-units or to remove ad-units as needed making changes on a single file only I have implemented the a.m. published system on thouands pf pages on my site successfully soon i will implement a same version of SSI for the footer that may include a Googel adsense search box on each page
Exactly .... this was something related I was talking about. I have seen a method where you put the google adsense code in a file with .js extension. I am not remebering the code which people uses to call that file. Your idea sounds to be little different ... I read that in a glance. This seems to be a php solution. First of all I am having window hosting server so will it work, what I am going to do then? Since you will reply after some time so I suppose that yes, we can host this adsense php solution on window server. Secondly, I understood the part of creating the files on server.... let's say if I have two files namely "adsense-atf" and "adsense-ftr" under "adsense" folder of my server so will this be the code pasted on the pages? <?php include('http://www.your_site-com/adsense/adsense-atf.tpl'); ?> Is .tpl the extention? Is it going to work in html pages, if so then windows server won't be a problem... Thanks for all your help I am not a native english speaker and I think I can't understand you. Could you please elaborate it in easy words? Thanks!
1. YES .tpl is the file extension I use under linux / PHP I can use almost any unless it conflicts with my apache config = hence NOT a htm/html/shtml extension !! I could use .txt definitely if i include only javascript like adsense 2. sri NO experience at all with WIN server and its solutions but i also linked in a.m. page - lower section - to http://www.kriyayoga.com/how_to/how_to_adsense_ssi.html a complete equivalent perl - CGI solution I published much earlier an important factor is to tell PHP to parse html files for PHP-SSI an equivalent would exist for perl-SSI under Linux we would enter such additional config in .htaccess I am sure someone here knows the exact win-solution 3. what is your native language pls ? I may be able to help