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
https://forums.phpfreaks.com/topic/96336-get-parameter-from-remote-site/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.