Im making a site which offers 5 "download slots" per day. if a user gets a slot then he/she has that file hosted for 2weeks and then the file is deleted....
can you think of a way of doing this?
i was thinking of making a script which counts the number of files in a directory and if it is more than 5 then it directs to a page which says "no more slots come back tommorow"
if there arnt then the users is directed to a page where they can upload a file.
then i would need a script which deletes a file which hasnt been modified for 2 weeks right?
it sounds simple enough right?
thanks
barney
help with my site :)
Moderator: General Moderators
-
Illusionist
- Forum Regular
- Posts: 903
- Joined: Mon Jan 12, 2004 9:32 pm
if it sounds simple enough why haven't you put anything together yet? We atren;t here to write your code for you. But there are places where you can find people that will, or you can find full cripts, at places like Hotscripts.com. Or you can try something on your own and if you ahve problems come back and ask specific question regarding your code.
What'll you pay for a script like this? I charge $20/hr...
Further to your question, I suggest you look at the code in terms of what functions you want
1. upload
2. delete
3. files in folder counter
4. links to the files
5. registration function (add, modify and delete users)
6. email to users re: status?
probably more that I can't think of right now...
Further to your question, I suggest you look at the code in terms of what functions you want
1. upload
2. delete
3. files in folder counter
4. links to the files
5. registration function (add, modify and delete users)
6. email to users re: status?
probably more that I can't think of right now...
This script sounds like a cool idea. 
You have most of the theory down good, but there is one thing I would suggest. You should use a mysql db or flatfile to calculate how long a file has been there and then you can judge (from the current date) when it is set to be removed.
If you are up for the challenge, this is a very good 'stepping stone' for learning more advanced coding methods in PHP. And I encourage you to do this on your own, and play around before you consider hiring someone.
It's a very easy task to accomplish I believe, so go for it.
If you need help on any code, then post away.
Regards.
You have most of the theory down good, but there is one thing I would suggest. You should use a mysql db or flatfile to calculate how long a file has been there and then you can judge (from the current date) when it is set to be removed.
If you are up for the challenge, this is a very good 'stepping stone' for learning more advanced coding methods in PHP. And I encourage you to do this on your own, and play around before you consider hiring someone.
It's a very easy task to accomplish I believe, so go for it.
If you need help on any code, then post away.
Regards.
i def willSami wrote:This script sounds like a cool idea.
You have most of the theory down good, but there is one thing I would suggest. You should use a mysql db or flatfile to calculate how long a file has been there and then you can judge (from the current date) when it is set to be removed.
If you are up for the challenge, this is a very good 'stepping stone' for learning more advanced coding methods in PHP. And I encourage you to do this on your own, and play around before you consider hiring someone.
It's a very easy task to accomplish I believe, so go for it.
If you need help on any code, then post away.
Regards.