Jump to content

Need help with php code


clarky0

Recommended Posts

Hi guys, Before i get into it could i just ask you to visit the site and actually look at what i need done first for a better understanding :)

 

Visit http://system-login.info/manage

 

Create an account, make it absolutely anything, it only requires a username and pass, no email etc..

 

So you get the jist of the site? Upload your personal files, they belong to you.. you can share the link/set passwords for them etc..

 

Anyway, what i am looking at doing is making this site free for "x" amount of MB lets say 20mb, then i want to start charging for extra storage space. I am not sure how to do this, i am not even sure what .php file it would go into. I am HOPELESS at coding so i really need some help. Thanks guys!

Link to comment
https://forums.phpfreaks.com/topic/274771-need-help-with-php-code/
Share on other sites

You would have to keep track of the size of each upload of a specific user and the sum of each individual upload for a specific user which would be the total size in bytes. This information would need to be stored either in a database or an object and each time a user attempts to upload another file, compare the total size of their uploads and the free allocated size to decide when to start implementing prices.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.