Jump to content

Image Tracking


The Little Guy

Recommended Posts

How can I track an image?

 

Can I use php to track an image, if so how?

 

when someone connects to an image, I would like it to save information in a database.

 

I am going to make page counters that people can have, so if they want a page counter, such as for there myspace, blog, ebay auction, etc. they can place one.

 

Some sites only allow HTML, so this needs to work on those sites.  I noticed that you can place get information in an image URL, and the image still works.

 

So How could I track an image so I can make updates to a database?

Link to comment
https://forums.phpfreaks.com/topic/46781-image-tracking/
Share on other sites

You would need every image to be linked to a php file.

 

IE: http://www.images.com/image/image.jpg would soon become http://www.images.com/image.php?image=image.jpg

 

From there the script would update the database, find the actual location of the file and than readfile and write the header for the file type and basically display the file.

 

Fun stuff!

 

www.php.net/readfile

 

I am sure you can find some examples in the user contributions.

Link to comment
https://forums.phpfreaks.com/topic/46781-image-tracking/#findComment-228047
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.