Page 1 of 1

help with my site :)

Posted: Mon Mar 29, 2004 10:29 am
by beedee
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

Posted: Mon Mar 29, 2004 11:24 am
by Illusionist
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.

Posted: Mon Mar 29, 2004 12:13 pm
by beedee
because i don't know much php which is why im asking for help.... :roll: thanks for the link...

Posted: Mon Mar 29, 2004 12:40 pm
by lostboy
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...

Posted: Mon Mar 29, 2004 2:53 pm
by m3mn0n
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.

Posted: Mon Mar 29, 2004 3:05 pm
by beedee
Sami 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.
i def will :)