As there is a index.shtml, So I just included <!--#include virtual="/ad_network_324.php" --> The ad only appears on the front page... But as the rest of the pages are in the .html I tried to add these lines... <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network_324.php'); echo $ad_network; ?> and also <!--#include virtual="/ad_network_324.php" --> but they do not work... site url top-profiles.com
In the footer cgi file I have something like... #!/usr/bin/perl #Get the co-op page use LWP::Simple; $dpcoop = get ('http://www.domain.com/ad_network_427_perl.php'); { print "Content-Type: text/html\n\n"; print <<EOM; HTML - $dpcoop EOM exit; } Code (perl): where HTML is where I enter the HTML stuff and $dpcoop where you want the ad to show up. http://www.domain.com/ad_network_427_perl.php has.... <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network_427.php'); echo $ad_network; ?> Code (php): The nice thing about this is you can use the same files on all your domains. If you need to make the pages support SSI, in .htaccess... AddType text/x-server-parsed-html .html AddHandler server-parsed .html
Hi Nintendo. Thanks! Would you mind to explain it in a step by stpe manner please? Sorry... I know you odnt get paid for this...but yoru help is really appreciated. I have been trying to get this working for a whiel now. Still no luck and get very frustarted... I do not think AddType application/x-httpd-php .php .htm .html work on sites that are not PHP. I remember i did change a site to all .php from .html so that they work... Has anybody got any idea please? Thanks man, sorted... Now, 1 more question on this. How to get the co-op ads centered? Thanks
The first code is what's in the cgi file. That's the file I call from SSI. <center>$dpcoop</center> would make the ads in the center. You don't need AddType application/x-httpd-php .php .htm .html You just need to be able to do SSI.
Man, you are truly genius! Can you give me advice on how to place ads on blogger blog installed on own server (meaning NOT http://xxx.blogspot.com)?