Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 11-26-2007, 03:49 PM adsense in php
hh2001's Avatar
Novice Talker

Posts: 6
Name: john
Trades: 0
Hi.


I wish to use adsense in a site that was made using php.
How easy is this to do as I have dreamweaver mx and the php code did not show up at all.

I would like help if possible

Regards.

John.
hh2001 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-26-2007, 03:56 PM Re: adsense in php
lizciz's Avatar
Webmaster Talker

Posts: 744
Name: Mattias Nordahl
Location: Sweden
Trades: 0
Are you refering to Google Adsense? Then there is no php involved, is't a simple copy-and-paste javascript.
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 11-26-2007, 06:59 PM Re: adsense in php
Millions's Avatar
Super Talker

Posts: 110
Location: England
Trades: 1
If its a forum go to the site where the forum was made and you will probably find a little add on to install in to it and this will show all you adds
__________________
Lifes Just Great At The Mow :-)

Please login or register to view this content. Registration is FREE
Millions is offline
Reply With Quote
View Public Profile Visit Millions's homepage!
 
Old 11-26-2007, 09:12 PM Re: adsense in php
Defies a Status

Posts: 1,605
Trades: 0
The easy way to do it is to create a file that contains the adsense code and then use php to to include that file where you want it to appear.

If you need help with this post more.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 11-28-2007, 01:59 PM Re: adsense in php
hh2001's Avatar
Novice Talker

Posts: 6
Name: john
Trades: 0
Quote:
Originally Posted by lizciz View Post
Are you refering to Google Adsense? Then there is no php involved, is't a simple copy-and-paste javascript.
Yes it is Google adsense and I was told to put it in index.php and this did nothing apart from stopping the site main page opening and even with dreamweaver mx this did not pre-view anything at all.

So I was told that the os company that deals with the site making software does not support any support with adsense and I would need a programmer to ad the script !.

So apart from getting a error on the main page about a line number I have no idea at all how to get adsense on every site page.

Regards.
John.
hh2001 is offline
Reply With Quote
View Public Profile
 
Old 11-28-2007, 02:04 PM Re: adsense in php
hh2001's Avatar
Novice Talker

Posts: 6
Name: john
Trades: 0
Quote:
Originally Posted by colbyt View Post
The easy way to do it is to create a file that contains the adsense code and then use php to to include that file where you want it to appear.

If you need help with this post more.
Need help thats a understatement lol.
I need help big time I have been told nothing that will help me put this........... on a php dating site.

<script type="text/javascript"><!--
google_ad_client = "pub-9041747669581149";
//468x60, created 11/30/07
google_ad_slot = "3066449363";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Any help offered .

Regards.
John.

Last edited by hh2001; 11-30-2007 at 04:00 PM..
hh2001 is offline
Reply With Quote
View Public Profile
 
Old 12-02-2007, 03:22 PM Re: adsense in php
hh2001's Avatar
Novice Talker

Posts: 6
Name: john
Trades: 0
Quote:
Originally Posted by lizciz View Post
Are you refering to Google Adsense? Then there is no php involved, is't a simple copy-and-paste javascript.
I have done this and the site then had an error on it.

Any other ideas?.

John
hh2001 is offline
Reply With Quote
View Public Profile
 
Old 12-02-2007, 03:50 PM Re: adsense in php
Defies a Status

Posts: 1,605
Trades: 0
Quote:
Need help thats a understatement lol.
I need help big time I have been told nothing that will help me put this........... on a php dating site.
Some general help. Then PM me your url if you want specific advice.

Use notepad! Copy the supplied Google JS to a blank page. Select save as *.* (all files and save the file as adsense.php or whatever you want to name it.

Then open your index.php file and copy the below to where you want it to appear:

<?php include("adsense.php"); ?>

Upload the new file and the adsense.php to your server.

Note: sometimes it is easier to do the include in the header or the footer. Also some scripts use template files for the html and you have to put it there. The header and the footer are usually different files than the index file.

One adsense.php file can be used on every page of a site once you find the proper place to place the code.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 12-03-2007, 04:29 PM Re: adsense in php
hh2001's Avatar
Novice Talker

Posts: 6
Name: john
Trades: 0
Hi Colbyt.

I tried it in index.php and got an error in the page.
Thats why I came on here and I was told to use https://www.scriptlance.com/programmers/more_info.shtml and get some one to do it.
But I only got people asking for $5 to $25 to do it and they did not sound very trusting.
As I know they would need to get in to the host and need the user name and password.
And they could sod it all for me..couldn't they?.

Regards.
John.
hh2001 is offline
Reply With Quote
View Public Profile
 
Old 12-06-2007, 12:48 AM Re: adsense in php
Novice Talker

Posts: 4
Name: Damon
Location: Canada
Trades: 0
Check if you can create extra FTP accounts with your webhost.

If you can, create an FTP account for the programmer and then erase it when they are done.
AskOlliDamon is offline
Reply With Quote
View Public Profile Visit AskOlliDamon's homepage!
 
Reply     « Reply to adsense in php
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.69561 seconds with 12 queries