How does pay per click system work?

Discussion in 'HTML' started by kelvoon@hotmail.com, Oct 13, 2006.

  1. Guest

    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?
    , Oct 13, 2006
    #1
    1. Advertising

  2. richard Guest

    <> wrote in message
    news:...
    >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?
    richard, Oct 13, 2006
    #2
    1. Advertising

  3. jojo Guest

    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
    jojo, Oct 13, 2006
    #3
  4. Jeffrey Guest

    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

    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?
    Jeffrey, Oct 13, 2006
    #4
  5. "jojo" <> skrev i meddelandet
    news:egoh5a$6ri$...
    > 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!
    Luigi Donatello Asero, Oct 13, 2006
    #5
  6. Guest

    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?
    , Oct 14, 2006
    #6
  7. jojo Guest

    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
    jojo, Oct 14, 2006
    #7
  8. Guest

    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?
    , Oct 18, 2006
    #8
  9. jojo Guest

    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
    jojo, Oct 18, 2006
    #9
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    8
    Views:
    436
    Carol W
    Mar 11, 2005
  2. Replies:
    2
    Views:
    359
    PeterMcC
    Oct 6, 2005
  3. Replies:
    0
    Views:
    401
  4. Replies:
    0
    Views:
    353
  5. Auction software
    Replies:
    0
    Views:
    399
    Auction software
    Jun 27, 2004
Loading...

Share This Page