![]() |
I need a php script to limit download
I want that to rpevent that a user download more that (let's say) 3 files in a day.
And i need a php script to do this. Does someone has a free solution ? |
you can use php sessions... example;
<?php session_start(); if (!session_is_registered('count')) { session_register('count'); $count = 1; } else { $count++; } ?> <? if ($_SESSION['count']>="3") { ?>you have reached you download limit...etc... <? } else { ?>download code here<? } ?> hope this helps ;) |
in fact i programmed this:
Code:
<?php |
All times are GMT -7. The time now is 11:36 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123