I have being trying out a few bits and bobs in the PHP zone of my website. It is all pretty much still under wraps and there are a few products in their that I will probably never openly release. They were just big tests. So far I have made an uploader with different users and profiles to enable fairly open file sharing. This is still fairly basic and is currently password protected as a whole but users files are not individually protected. I wrote the whole thing in PHP as my first real PHP script using loads of tutorial and copying and pasting a bit of script. But it works and it taught me a lot of PHP in the process.
I decided to revamp the whole thing and rather than building on what I had started I started afresh. Building with much more experience. I started by making a user accounts system with PHP / MySQL and made registration, and login forms. I wrote logon and register scripts to go with them, and I made some basic artwork to put on the forms and wrote some CSS to upgrade the appearance of the HTML output. I then had to work out what to put inside. My first gizmo was a “JotBox” which was a simple textarea that allowed the saving of notes and other bits. I wrote a PHP script to allow the saving in the MySQL database in the record corresponding to the user ID. I added session variables to the login system to allow the id to be used in the script. I since upgraded the look of it with a new save button and a message when it has been saved and a JavaScript to revert it back to its previous appearance after a single second.
Next I implemented an uploader into the interface. It was based on my old one but with a better UI and it stored a list of files in a new database and then read them through another snippet of PHP. I used a small piece of JavaScript to make this box feel better too with the show / hide of the upload box. I implemented a level system for users so that I can play around with the latest release of the code (buggy) whilst users can have the safe code until the buggy code becomes safe when I switch the levels and start new developments. I made a few fake users and one real user successfully signed up.
The whole system is not really ready for anything or anyone yet. It is completely unprotected and needs protection before going live. I am going to implement some spam controls: email activation, file limits, .htaccess in file directory etc. in the near future. But for now I am proud of what is my first PHP project.