Dynadot โ€” .com Transfer

GoogleAds into CGI Scripts

SpaceshipSpaceship
Watch
Impact
23
I am trying to insert my googleads code into a .cgi script. But each time I do, I get an internal server error.

I have tried the normal google ads code, and also the code formatted like:

$content = "<script type=\"text/javascript\"><!--
google_ad_client = \"pub-xxxxxxxxxxxxxxxxxxx\";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = \"728x90_as\";
google_ad_channel =\"xxxxxxxxxxx\";
google_ad_type = \"text_image\";
google_color_border = \"333333\";
google_color_bg = \"000000\";
google_color_link = \"ffffff\";
google_color_url = \"999999\";
google_color_text = \"cccccc\";
//--></script>
<script type=\"text/javascript\"
src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">
</script>";

Anyone that knows how to do it?

Cheers
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
check your error log. it should give more detailed outputs
 
0
•••
Cheers

It says - Premature end of script headers
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back