So, my client asked for something very specific, and I have no idea where to start...
My client asked for the ability to go to a page on his website, and the person would be able to upload files, however, to keep this uploader safe for what we're doing, he only wants people to be able to upload .rar or .zip files. After being uploaded, administrators should be able to download the files. However, only admins should be able to. Also the files need to go into a special folder all its own so that it stays organized...
Again I have no idea where to even start, so any help would be appreciated, or if you can hook me up with a link to where I can download something that'll do it, and we'll just put the credits there.
Also, the site owner says he has a dedicated server and is very odd about letting people in the files.. im not even allowed so he just wants some coding to place there, then give credit.
Again, Please help, sooo lost.
EDIT: Also, now the guy wants this feature: When the admin of the site opens this page to view which .rar/.zip files have been submitted.. he should also have an "approve" "deny" and "download" button.
Again. I have no idea where to start and I'm just a basic coder. D": Please please help.
Last edited by VisualAddict; 05-10-2012 at 02:10 AM..
This sounds reasonably basic. If you have 'no idea where to start', I recommend hiring somebody who has some idea. No offense meant, just being realistic.
If you really want to DIY, read up on the file uploading using PHP. It is as simple as using an HTML form, reading the uploaded file using PHP, checking the extension and saving it in file system (preferably) or in database.
You may need to create a password protected area and authenticate the admin, before giving him a list of files and showing a link to download the file.
Again, these are basic - nothing complex, just some work.
Again. I have no idea where to start and I'm just a basic coder.
I believe the terminology is 'learner'. As the last poster has said this is relatively straight forward normally however the difficulty you may have is writing code for a system that exists if you can't have access to the code to integrate with it. IF that is the case you need to say so as it's not clear if thats the case or whether you're starting from the ground up.
If you're starting from the ground up, I'm going to break this to you as politely as possible: You've bitten off more than you can chew. There are many people who learn a few lines of PHP and then take on PHP work thinking it's easy to use and then end up taking on a job that they just can't handle. IF you're in that situation please learn from it. Subcontract the job to someone else this time and then continue learning from your own projects. Otherwise you're going to find your reputation goes down the pan pretty quickly. I'm not trying to be rude, just honest.
Thanks for the replys guys, and no offence taken at all, ha. Actually most web-work that I do I snip around the web for different coding bits and mix and match to what the job requires, then with the basic "learner" knowledge that I have I edit the coding..
I've designed everything on the site except for the clothes obviously, and the website that I'm doing this "project" for is www.thebossclan.com which is a video game site for the popular Grand Theft Auto franchise. (A sub-server site owned by an independent guy.)
Also, they already have a website built and running with quite a large member base, but they asked me to do this bit of PHP coding.
I REALLY want to learn to do stuff like this because everything I've learned with web design (from photoshop to html) I've had to learn on my own, and now with this project, I really don't know what to do.
I WOULD hire a sub-contractor, but I'm doing this for free as a favor to a friend, and don't actually have money to hire someone to make it... as I'm only 16. xD
Thanks so much for the reply's, if any more help can be provided I'd so graciously accept it!
What I would suggest is you lookup the function move_uploaded_file() on php.net - you will see user notes with code samples there.
What you're wanting to do is relatively straight forward for experienced coders but still a fairly large project for a newbie (plus admin panels can be a bit complex depending on the level of security etc - a pet hate of mine to be honest).
I've got to be honest, in the past I've offered to do projects for people and found I've been way out of my depth with it - the easiest thing is often to confess and say you're not able to do it (find an excuse of any sort to save yourself the embarassment).
As the site already has a large member base, giving them a page with admin features could lead to a weakness in the websites security if you don't know the basics of web security especially if you're accessing the same database as the main site. I'm not trying to put you off but being honest. I recently did the back end for a council website in the UK and its a lot of responsibility and pressure. Despite being pretty good with PHP I still encountered some stuff that I'd never handled before, had a few bugs come up and I had to be very careful not to leave any known weaknesses in the site. It's a lot of responsibility and if it goes wrong they come back to you to fix it. Even now I still end up fixing bugs for this website. I guess what I'm saying is that if the website is a business and your code leads it to get hacked you could end up being responsible for a lot of money / loss.
Hmm, thanks for the reply, a lot to think about. Also, just a side note, on the page the average person wouldn't be able to use admin functions, just be able to upload a .rar file to a database, and then administrators for the site could view the file/download it and then move it into another folder if they choose.
Also, this is not a business that this project is for, this is actually just some video game sub game that some guys made called Multi theft auto, and this site is a sub-game of THAT sub game. So money is not involved, just a virtual game.
However I understand what you're saying, maybe I'll just ask you to make the php coding for me and then I'll read and learn it and give you credit? ;D Just kidding, I wouldn't expect anything like that.
Ah ok, I thought it was visualaddictsclothing.com that you were creating this for - hence the advice about security etc (i noticed the shop).
In that case if its not for a business site, you can ignore some of my previous advice. Sure security is still an important issue but not as important - IE not mission critical. That being the case you may as well give it a go and have a bash at making something - if nothing else you'll at least learn from it.
As for hiring me.. erm no! I mean thanks for the suggestion but I'm swamped with projects at the moment and struggling to keep my head above water (and motivated).
Damn.. too bad xD I really wanted someone else to have the coding and me be able to read and learn from it xD Ah well... any references you can give me to help me find/make it? I'm sure somewhere someone has requested this and has the coding up, I'm just not good at searches.