pasting adsense code in php site

Please support our Pay-Per-Click Advertising advertiser: Get a Free Web Marketing Analysis!
Reply

Join Date: May 2005
Posts: 82
Reputation: indianscorpion2 is an unknown quantity at this point 
Solved Threads: 1
indianscorpion2 indianscorpion2 is offline Offline
Junior Poster in Training

pasting adsense code in php site

 
0
  #1
Jan 23rd, 2007
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
Last edited by indianscorpion2; Jan 23rd, 2007 at 1:38 pm.
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 82
Reputation: indianscorpion2 is an unknown quantity at this point 
Solved Threads: 1
indianscorpion2 indianscorpion2 is offline Offline
Junior Poster in Training

Re: pasting adsense code in php site

 
0
  #2
Jan 24th, 2007
cmoon..........isnt there anybody in this site who is professional enough to solve this problemm?????????????????????????????????
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 82
Reputation: indianscorpion2 is an unknown quantity at this point 
Solved Threads: 1
indianscorpion2 indianscorpion2 is offline Offline
Junior Poster in Training

Re: pasting adsense code in php site

 
0
  #3
Jan 24th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,422
Reputation: stymiee is on a distinguished road 
Solved Threads: 35
Moderator
stymiee's Avatar
stymiee stymiee is offline Offline
He's No Good To Me Dead

Re: pasting adsense code in php site

 
0
  #4
Jan 24th, 2007
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!
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 82
Reputation: indianscorpion2 is an unknown quantity at this point 
Solved Threads: 1
indianscorpion2 indianscorpion2 is offline Offline
Junior Poster in Training

Re: pasting adsense code in php site

 
0
  #5
Jan 25th, 2007
well actually the pages of my site have been writtten in php.....so i have asked....and i got the solution thanks....
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Pay-Per-Click Advertising Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC