Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default PHP: Help needed

    OK!

    For a while now I have been thinking. Why don't people get paid for sharing files and images? So I was thinking, if you paid "x" per unique view if it was direct and 2x "x" per share url (it would have adverts on)

    Anyway can anyone suggest a way of logging the views of a file...

    EG)

    I post a image on here. Every time the page is loaded it logs it down onto my server.

    +rep for any helpful links/help

    Edited by Lµke (Forum Moderator): Thread moved from Website Designing. Please post in the correct section next time, Thanks .
    Last edited by Lµke; 04-02-2007 at 12:02 PM.

  2. #2
    Join Date
    Jan 2007
    Posts
    651
    Tokens
    0

    Default

    I like the idea, but i don't think you can log visiter actiity on someone elses website, and log it on yours ?
    James


    Connected to reality through a proxy server.

  3. #3
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    You can, quite a lot of stats websites use the same concept.

    htaccess would have to be used

  4. #4
    Join Date
    Oct 2006
    Posts
    119
    Tokens
    0

    Default

    Concept would never worj because of forums and auto-refreshing pages.

    you could technically build it into a (gif/png/etc.) image with PHP and use mod_rewrite to make it that type. Each time the image code executes, it adds 1 to either a mysql database or logs it in a basic file.

    I could try making it, I've done something almost identical to it before...

  5. #5
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Logging the views is pretty simply done, i belive dinamic images will work in sigs, so easiest way would create a dinamic loader, aka image.php?img=somthing.jpg
    Then just add the headers to stop caching and set the relivent image load type, and include the image you want in to the script. Then also in the script set up a simple logger to count unqiue ips for what ever image etc you want it to. Easy as pie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •