Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > How does pay per click system work?

Reply
Thread Tools

How does pay per click system work?

 
 
kelvoon@hotmail.com
Guest
Posts: n/a
 
      10-13-2006
I am currently doing a pay per click system (like google Adsense).
I am wondering how is the pay per click process.
Does anyone have the idea?
Can it be done using php and javascript only?

 
Reply With Quote
 
 
 
 
richard
Guest
Posts: n/a
 
      10-13-2006

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
>I am currently doing a pay per click system (like google Adsense).
> I am wondering how is the pay per click process.
> Does anyone have the idea?
> Can it be done using php and javascript only?
>


IMNSHO, pay per clicksucks. If I'm paying you, how do I know you didn't sit
there spending hours clicking away generating hits all day long?
You show me the actual stats that show unique visitors and where they came
from, then maybe you might get paid.
Is there anyone out there still doing that crap?

 
Reply With Quote
 
 
 
 
jojo
Guest
Posts: n/a
 
      10-13-2006
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> I am currently doing a pay per click system (like google Adsense).
> I am wondering how is the pay per click process.
> Does anyone have the idea?
> Can it be done using php and javascript only?
>

I wouldn't use JavaScript. It can be switched off, so maybe a user
clicks but the click isn't recognized because the user has Javascript
disabled.
Perhaps you create a website which is opened when you click the add (I
guess it's an add??) and writes the click in any file or database and
then redirects to the page you want to display. this would only need
some server-side script, PHP for example. You can either use the
HTTP-referer to get the information on which website the add whcih was
clicked was or you send some information along with the URL.
Just an idea.
HTH, jojo
 
Reply With Quote
 
Jeffrey
Guest
Posts: n/a
 
      10-13-2006
If all you want to do is record clicks, you can do it with just plain
php.

AdSense adds all sorts of complexity in an effort to make it harder to
mess with the ads while maintaining flexibility. For instance,
consider the following code that you might see in another (pretty
basic) ad program:

<a href="myadserver.com/record_click.php?id=23423423"><img
src="myadserver.com/record_impression.php?id=23423423" width="728"
height="90"></a>

That's fine, but you can't change it to simple text ads easily. So
maybe you have users insert an iframe, but then someone decides that
they'd rather have an ad space that's 300x150, which makes your ads
look crappy. And then 3 years later something way cooler than iframes
comes along, but you're reliant on the user to change the code on all
of their pages. By using javascript to add the ad code dynamically,
they solve those problems and probably a lot of others. They also
maintain more or less complete flexibility.

-Jeff

(E-Mail Removed) wrote:
> I am currently doing a pay per click system (like google Adsense).
> I am wondering how is the pay per click process.
> Does anyone have the idea?
> Can it be done using php and javascript only?


 
Reply With Quote
 
Luigi Donatello Asero
Guest
Posts: n/a
 
      10-13-2006

"jojo" <(E-Mail Removed)> skrev i meddelandet
news:egoh5a$6ri$(E-Mail Removed)...
> (E-Mail Removed) wrote:
> > I am currently doing a pay per click system (like google Adsense).
> > I am wondering how is the pay per click process.
> > Does anyone have the idea?
> > Can it be done using php and javascript only?
> >

> I wouldn't use JavaScript. It can be switched off, so maybe a user
> clicks but the click isn't recognized because the user has Javascript
> disabled.
> Perhaps you create a website which is opened when you click the add (I
> guess it's an add??) and writes the click in any file or database and
> then redirects to the page you want to display. this would only need
> some server-side script, PHP for example. You can either use the
> HTTP-referer to get the information on which website the add whcih was
> clicked was or you send some information along with the URL.
> Just an idea.
> HTH, jojo


Interesting.
Any specifical reference into the PHP manual?


--
Luigi Donatello Asero
https://www.scaiecat-spa-gigi.com/it/svezia.html
谢谢*, спасибо, tack så mycket!


 
Reply With Quote
 
kelvoon@hotmail.com
Guest
Posts: n/a
 
      10-14-2006
Thx for help... Now I have an idea for how does the system work.
But now i hv another question need to ask
just like richard mention...
how do I know the person didn't sit there spending hours clicking away
generating hits all day long?

 
Reply With Quote
 
jojo
Guest
Posts: n/a
 
      10-14-2006
(E-Mail Removed) wrote:
> Thx for help... Now I have an idea for how does the system work.
> But now i hv another question need to ask
> just like richard mention...
> how do I know the person didn't sit there spending hours clicking away
> generating hits all day long?
>

AFAIK there is no absolutely reliable way. One possibility is to save
the users IP together with the click and if another click comes from the
same IP within let's say half an hour, you ignore that click. but of
course somebody can for example use any anonymizer and surf the internet
through different proxys and then his/her IP would be useless. And in a
network all computers have the same internet IP, so you would only
recognize one click from within that network in half an hour, even if
different people are clicking the add.
Another possibility is to use PHP sessions. Just start a session when
the user clicks the add (This would need the way to track the clicks I
described. you can simply add sessin_start() in the php-file which is
opened when you click the url) and set any var. turn session_expire to
half an hour. if the var is still set when the user clicks the next time
you can again just ignore that click. But this way would not work if
somebodey does not accept session-coockies in his browser or deletes the
coockie from your site.
Just a few ideas again, don't know if they work, never tested it.
Perhaps you can use both methods together or a mixture of both.

HTH, jojo
 
Reply With Quote
 
kelvoon@hotmail.com
Guest
Posts: n/a
 
      10-18-2006
thx for ur idea..
Is it the user IP different with internet IP?
If yes wat the different?
how can i get the user ip and internet IP?

 
Reply With Quote
 
jojo
Guest
Posts: n/a
 
      10-18-2006
(E-Mail Removed) wrote:

> Is it the user IP different with internet IP?
> If yes wat the different?
> how can i get the user ip and internet IP?


Every Computer has got 2 IP adresses (or it seems like it has got 2).
One for the local network (which usually starts with 192.168, but it
doesn't have to) which is his "name" in the local network (It's the one
you called "user IP"). it's needed to tell a server which computer
wanted to have which file from which other computer or which computer
want's to do which action.
The second one is the "internet IP". If you take a closer look at it you
see that in a network every computer has got the same internet IP. This
means the IP doesn not really belong to a single computer but to the
server or router which is connected to the internet. If now a computer
asks for a file in the internet (this is what is done if a website if
you open a internet site) it first asks the server (or router). the
server now asks the "internet" (of couse it's not that simple, but it
doesn't matter now). It then get's the file. The only thing which is
visible in the internet is the internet IP of the server (or router)
because this is where the file has to be sent to. The server now
redirectes the file to the computer the request came from using its
"local IP".
So you have no way to get the local IP of the PC from the internet
because it isn't sent along with the request and only the network server
(or the router) knows it.
If only one PC is connected to a router (or if a PC is directly
connected to the internet) it's of course the only computer which uses
the same IP which means that in this case you can use the IP to identify
the user.
Just for your information: a computer which does not belong to a network
(which means it is either directly connected to the internet or has no
connection to it) still has a local IP: it's 172.0.0.1
HTH, jojo
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
What are all the major Pay Per click sites? lindagoldstein100@yahoo.com HTML 0 05-25-2006 08:44 PM
Pay per click - Questions - Please help lindagoldstein100@yahoo.com HTML 2 10-06-2005 08:21 PM
pay-per-click; Where am I wrong in my numbers? indyfladon@yahoo.com HTML 8 03-11-2005 03:17 PM



Advertisments