| | |
pasting adsense code in php site
Please support our Pay-Per-Click Advertising advertiser: Pay Per Click Management Services
![]() |
•
•
Join Date: May 2005
Posts: 82
Reputation:
Solved Threads: 1
hello everybody!!!!!
i own a site (i dont want to mention the name....sticking to the rules of this forum)...it is designed in PHP...... it is basically a forum to download music,movies etc....
i registered myself in google adsense program and got the following code:-
<script type="text/javascript"><!--
google_ad_client = "pub-2768779675207123";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
i logged into my server and inserted this code in the source file index.php of my site
here index.php is the first page of my site....on which i want the ads to appear....
i got the ads but there are a few warning messages like this:-
WARNING CANNOT MODIFY HEADER INFORMATION..........................................................
PLEASE TELL ME HOW I CAN OVERCOME IT....I WOULD BE VERY GRATEFUL....
THANK YOU VERY MUCH
i own a site (i dont want to mention the name....sticking to the rules of this forum)...it is designed in PHP...... it is basically a forum to download music,movies etc....
i registered myself in google adsense program and got the following code:-
<script type="text/javascript"><!--
google_ad_client = "pub-2768779675207123";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
i logged into my server and inserted this code in the source file index.php of my site
here index.php is the first page of my site....on which i want the ads to appear....
i got the ads but there are a few warning messages like this:-
WARNING CANNOT MODIFY HEADER INFORMATION..........................................................
PLEASE TELL ME HOW I CAN OVERCOME IT....I WOULD BE VERY GRATEFUL....
THANK YOU VERY MUCH
Last edited by indianscorpion2; Jan 23rd, 2007 at 1:38 pm.
•
•
Join Date: May 2005
Posts: 82
Reputation:
Solved Threads: 1
these are the warning messages i am getting:-
Warning: Cannot modify header information - headers already sent by (output started at /home/indianjo/public_html/forum/index.php:3) in /home/indianjo/public_html/forum/includes/page_header.php on line 493
Warning: Cannot modify header information - headers already sent by (output started at /home/indianjo/public_html/forum/index.php:3) in /home/indianjo/public_html/forum/includes/page_header.php on line 495
Warning: Cannot modify header information - headers already sent by (output started at /home/indianjo/public_html/forum/index.php:3) in /home/indianjo/public_html/forum/includes/page_header.php on line 496
Warning: Cannot modify header information - headers already sent by (output started at /home/indianjo/public_html/forum/index.php:3) in /home/indianjo/public_html/forum/includes/page_header.php on line 493
Warning: Cannot modify header information - headers already sent by (output started at /home/indianjo/public_html/forum/index.php:3) in /home/indianjo/public_html/forum/includes/page_header.php on line 495
Warning: Cannot modify header information - headers already sent by (output started at /home/indianjo/public_html/forum/index.php:3) in /home/indianjo/public_html/forum/includes/page_header.php on line 496
I've seen you ask this in just about every other webmaster forum and they have given you the answer already. You have to put this code after you send out your page headers. Actually, this shouldn't even affect PHP as it goes into your HTML and not into your PHP code.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
![]() |
Similar Threads
- C code into php (PHP)
- C code into php (Community Introductions)
- How do I insert adsense code into YAbb forum (Existing Scripts)
- Having trouble with links on PHP site! Any help would be great! (PHP)
Other Threads in the Pay-Per-Click Advertising Forum
- Previous Thread: AdSense question from a New Member
- Next Thread: A new PPC affiliate program
| Thread Tools | Search this Thread |
acer adobe adsense advertising adwords amazon analytics android aol api appengine apple appstore ballmer bing blackberry blogging browser business carlicahn cellphone chrome cisco cloudcomputing coding congress copyright cuil development doubleclick earnings economy email environment europe facebook gis gmail google googleadwords googleanalytics googleapps googledocs googleearth googlemaps googlevoice government hewlett-packard hp ibm icahn imap internet internetsearch iphone java journalism linux map mapping maps marissamayer marketing microsoft mobile netbook netbooks news onlineads operatingsystems oracle palm porn ppc privacy publishing research saas salesforce.com search sex siliconvalley skype smartphone socialnetwork socialnetworking software stevejobs streetview twitter uk verizon video web wiki wikipedia windows yahoo yahoo! youtube






