Jump to content

get parameter from remote site


dime_f

Recommended Posts

Hello i have a problem and i hope that somebody can help me.

 

i work on project banner manager. i have owners who get banner with this code:

 

a href="http://localhost/click.php?site_id=1"

img src="http://localhost/picture.php?site_id=1" alt="server not started" /a

 

image tag is associated with php file who generate picture with this code:

 

$image_path = $row[0];

$fp=fopen($image_path,'rb');

$data=fread($fp,filesize($image_path));

echo $data;

 

when some visitor click on banner i want to increment banner clicks in click.php but i dont know how to recognize

banner id. Banners generates random and some time visitor see ex. banner1, other visitor see banner2.

how can i get banner id's for same site, if at one moment ex. 10 visitors see same site with diferent banners.

 

any ideas? (sorry for my bad english)

 

Regards

 

 

Link to comment
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.