help with my site :)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
beedee
Forum Newbie
Posts: 3
Joined: Mon Mar 29, 2004 10:29 am

help with my site :)

Post 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
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post 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.
beedee
Forum Newbie
Posts: 3
Joined: Mon Mar 29, 2004 10:29 am

Post by beedee »

because i don't know much php which is why im asking for help.... :roll: thanks for the link...
lostboy
Forum Contributor
Posts: 329
Joined: Mon Dec 30, 2002 8:12 pm
Location: toronto,canada

Post 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...
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post 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.
beedee
Forum Newbie
Posts: 3
Joined: Mon Mar 29, 2004 10:29 am

Post 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 :)
Post Reply