Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-27-2004, 01:21 AM
WebProWorld New Member
 

Join Date: Mar 2004
Location: Edmonton, AB
Posts: 5
FROGGYJ RepRank 0
Default code to tell me of download

Hi,

I know there is a way to do this however I need some help. I basically want to be notified any time that someone clicks on a download link. Perhaps email notification or something. Can anyone help me out or point me in the right direction with this?
Reply With Quote
  #2 (permalink)  
Old 03-27-2004, 12:25 PM
WebProWorld New Member
 

Join Date: Dec 2003
Location: WA, USA
Posts: 18
bob_99 RepRank 0
Default Re: code to tell me of download

Hi,

I suggest as a 1st step that you try hotscripts to see if they have a script to do this.

If you need to write your own, here's an outline of the code (PHP):

Create a file download.php

For your download links use something like download.php?file-name.jpg

When the user clicks on the download link the code in download.php would mail you a notification of the file name & start the download using a header command.

I hope this helps,

Bob


Quote:
Originally Posted by FROGGYJ
Hi,

I know there is a way to do this however I need some help. I basically want to be notified any time that someone clicks on a download link. Perhaps email notification or something. Can anyone help me out or point me in the right direction with this?
Reply With Quote
  #3 (permalink)  
Old 03-27-2004, 03:43 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default

You didn't mention what platform you're using, so I've presumed you're PHP enabled. There are plenty of scripts available that log the number of file downloads using a simple counter, there are also scripts that allow you to email the visitor a link to download the file.. so far I've not come across one that emails the site admin each time a file is downloaded... hmmm, must be a reason for this, eh? ;o)

Anyways, have a look through this selection from Hotscripts.com
Reply With Quote
  #4 (permalink)  
Old 03-27-2004, 06:03 PM
WebProWorld New Member
 

Join Date: Dec 2003
Location: WA, USA
Posts: 18
bob_99 RepRank 0
Default

I have a client with hundreds of downloads each day. The script I wrote for him stores information about each download in a MySQL database & at 1 am every morning a cron job mails download reports to management.

I haven't seen a script that sends a mail for each download but once you start executing PHP for a download click there are a lot of ways to use that information.

Bob


Quote:
Originally Posted by paulhiles
You didn't mention what platform you're using, so I've presumed you're PHP enabled. There are plenty of scripts available that log the number of file downloads using a simple counter, there are also scripts that allow you to email the visitor a link to download the file.. so far I've not come across one that emails the site admin each time a file is downloaded... hmmm, must be a reason for this, eh? ;o)

Anyways, have a look through this selection from Hotscripts.com
Reply With Quote
  #5 (permalink)  
Old 03-27-2004, 06:10 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default

Obviously it makes sense to implement a means of monitoring downloads, and making a log of the number of downloads, along with other visitor information... is really useful.

I just don't think you need to send an email each and every time a download is made.. which is what the original post requested.
Reply With Quote
  #6 (permalink)  
Old 03-28-2004, 01:06 AM
WebProWorld Pro
 

Join Date: Sep 2003
Location: United Kingdom
Posts: 216
kikkertm RepRank 0
Default

<plug>
You could just use an external web statistics service. www.fxcounters.com (just to name one) provides full web site statistics and you can also track downloads. It's free.
</plug>
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0