Jump to content

Recommended Posts

Hello I bussy with making of ad managment with pay per click.

So hier is how I set it up till now:

                        'o_ads_stats',

'ad_id INTEGER  NOT NULL,

ad_ip VARCHAR(100) NOT NULL,

ad_browser VARCHAR(100) NOT NULL,

ad_bid DECIMAL(10,2),

ad_date DATETIME NOT NULL'

So link should be like this:

www.websiteplaats.nl/ get.php?user=1&ad_bid

and codes are like this:

$getLink = new ownerGet();

$getLink->o_id = $_GET['o'];

$getLink->ad_id = $_GET['aid'];

$getLink->ad_bid = $_GET['abid'];

$getLink->ad_bid_extra = $_GET['abidextra'];

$getLink->ad_ip = $_SERVER['REMOTE_ADDR'];

$getLink->ad_browser = $_SERVER['HTTP_USER_AGENT'];

and I have ev erthing I need.....

 

Now I want to hide the bid from get method.....so I was thinking about md5 encoding....

but hier is my imortant request:

I want to charge people if for that one time when browser is loaded and not every singel time if user click back and clicks again. How can I do this with encoding get to hide info?

Is there any opensource where I can learn from?

 

tnx.

Daka

Link to comment
https://forums.phpfreaks.com/topic/204209-ad-managment-ppc/
Share on other sites

Are you saying that if a user visits the site and there is a charge that if they click a link and then press the back button to the original page there is not a second charge?

 

If so you could either use a session(), cookie, or store their IP in your database and check that if they have already been to this page then do not execute the code that creates a charge.

Link to comment
https://forums.phpfreaks.com/topic/204209-ad-managment-ppc/#findComment-1069602
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.