Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Methods for conting downloads

Featured Replies

Well as title says, i have a free DLL download site and i want to count the number of downloads for each file. Is this possible?

  • Author

dman, you know your stuff. is it possible...

try this cgi script, caveman.

http://www.utilmind.com/scripts/downloadcounter.html. looks like you just need to alter your links a little to point to the script.

I like liquidplasmas idea for php.

call the script with a ?get parameter of the url of file from your table link.

then you could do a redirect something like this

<?php
// Redirect to the link URL
$url="files/mydll.dll";
Header("Location: $url")
?>

you can add some code to either increment a download count to a file or db. I wouldn't mind having this for my site as well, so I will try to help if you want to try it this way

Edited by dman

  • Author

carefull who you are calling caveman, i`ll hunt you down and eat you for dinner. :D:lol:

that cgi script looks ok but liquidplasmaflow PHP script idea is interesting, even though i don`t understand PHP. I`m going to go through this tutorial tomorrow.

BTW is your site the one in your sig?

Nice find, lpf. This is similar to what I was proposing, passing the download url to a php script as a get parameter.

"Neanderthal" (sorry, didn't realize cavemen, er, hominids were so touchy.) Go club some chick over the head and drag her back to your cave by her hair, that always makes you feel better! :thumbup

If you are referring to the link in MY sig, then no. I wish I was talented enough to write dabo. This project is created in Python by former Foxpro guru Ed Leafe. I learned a lot about Foxpro from him, but because MS is trying to kill it the foxpro community is moving on. I think I am doing well when I can figure out how to USE Ed's code.

this is My Site. Dont laugh, it is work in progress and I am no graphics artist. :whistle: The freeware page and submission form are PHP/MySQL scripts. I am most proud of getting fixed menu frame to work in IE using CSS. Curse IE and its crappy CSS implementation, I only hope they can do better with IE7.

I am out of town till thursday. Read the tutes and if you still need help at end of week feel free to post or PM.

Edited by dman

  • Author
http://www.hotscripts.com/Detailed/33867.html <-- Try that. And to whose sig are you referring?

You are the master script finder, thank you i will give it a go, dman refered to his site earlyer i was wondering if that was it in his sig.

"Neanderthal" (sorry, didn't realize cavemen, er, hominids were so touchy.) Go club some chick over the head and drag her back to your cave by her hair, that always makes you feel better! thumbup.gif

LOL

your site looks ok, though in the second paragraph "your" should be "you" :P

Thanks for your help :thumbup

Edited by Neanderthal

:blushing: Thanks for the proofread. Swear I read it 100 times. Good luck, I am signing off til thurs eve. have fun!

dman

  • Author

matrix0978, have you thought of writing that tutorial out again, it would be realy usefull for me, and others i think.

I`m trying http://www.hotscripts.com/Detailed/33867.html but can`t get it to work properly.

I can link to a file in the specified download folder but it won`t work if i link to a file that is in a folder inside the specified download folder.

Also i can`t figure out how to view the download statistics.

Any help appreciated. it`s got me :wacko:

  • Author

my download folder is called "dll" so i have set the variable in download.php like this,

$FILES_DIR = "/dll/";

and my links are therefore,

href='download.php?file=A3D.RAR'

but if i try to link to a file inside a sub folder inside my download folder. eg,#

/dll/A/A3D.RAR

the link

href='download.php?file=/dll/A/A3D.RAR'

or

href='download.php?file=/A/A3D.RAR'

won`t work.

Is there any way to make this work or can i only link to files in the root of my specified download folder?

Hi B.C. :lol:

Instead of hard-coding the $FILES_DIR variable, pass it as another get parameter, like this..

href='download.php?file=A3D.RAR&filedir=A'

in the download script, set it like this...

$FILES_DIR = $_GET['filedir'];

  • Author

dman, you are hilarious :P

thanx, doesn`t seem to work though.

Edited by Neanderthal

sorry, you need to still add the backslashes and the rest of your path to the string. Somrething like

$FILES_DIR = "/dll/" . $_GET['filedir'] . "/";

Edited by dman

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.