A push in the right direction
Posted: Sat Jun 21, 2008 11:08 am
Hello users of devnetwork.
I am new to php and have had a few ideas but need a push in the right direction as to whether I can do the things I want with php and where to find guides on how to do them.
Firstly:
A script that allows the user to upload up to 10 files, using a folder browser with multi file select, not using 10 upload boxes. An example of what I mean is at http://www.fatalpain.com/multi_upload.PNG
These files, once upload should all go into the same folder.
Then, the file name should be enterned into the database table. Currently, I have managed to get the directory and file name to save into a database but only using a single upload script. How could I make a multi select upload script saves data to a cetrain folder and updates the database fully as well as removing the directory information (Removing all data before and including the final '/' before the file name)?
Secondly:
As a security measure for the above, I would like there to be only 1 type of file (extention) allowed to be uploaded with a size limit. Also, the file name needs to follow a basis of 'Word or more all starting with capital then space - space Word or more all beginning with capital dot. extension. Eg = Chapter One - Philosophy.pdf. If a user does not use a dash in there file, display an error telling them how it should be done. If they follow the space - space .extension basis, there file name should be auto capitalised. Eg. Chapter One Philosophy.pdf = Error. chapter one - Philiosophy.pdf = Auto correct to Chapter One - Philosophy.pdf. I have not made any progress on this from of read input and chnaging them. I hope you can help me with this.
Thirdly:
As my database fills, every day, I would like it to output a file containing data from within it. The file should follow the following basis.
Eg.
The file should be generated every day and replace its old version. The file should have the extention .mnzt. Also, if possible but not nessecary, a timer that says how long until the next file update is, viewable on a web page would be nice if you could point me in the direction of doing this.
Thankyou for reading this far. I am willing to learn so tutorials would be wonderful but even if you can only post a quick tip, it would be much appreciated. Once this task is complete, I aim to learn php to a much fuller extent but I currently need to finish this. Please ask me any questions if you do not understand what I am trying to achieve.
Thanks for your replies.
I am new to php and have had a few ideas but need a push in the right direction as to whether I can do the things I want with php and where to find guides on how to do them.
Firstly:
A script that allows the user to upload up to 10 files, using a folder browser with multi file select, not using 10 upload boxes. An example of what I mean is at http://www.fatalpain.com/multi_upload.PNG
These files, once upload should all go into the same folder.
Then, the file name should be enterned into the database table. Currently, I have managed to get the directory and file name to save into a database but only using a single upload script. How could I make a multi select upload script saves data to a cetrain folder and updates the database fully as well as removing the directory information (Removing all data before and including the final '/' before the file name)?
Secondly:
As a security measure for the above, I would like there to be only 1 type of file (extention) allowed to be uploaded with a size limit. Also, the file name needs to follow a basis of 'Word or more all starting with capital then space - space Word or more all beginning with capital dot. extension. Eg = Chapter One - Philosophy.pdf. If a user does not use a dash in there file, display an error telling them how it should be done. If they follow the space - space .extension basis, there file name should be auto capitalised. Eg. Chapter One Philosophy.pdf = Error. chapter one - Philiosophy.pdf = Auto correct to Chapter One - Philosophy.pdf. I have not made any progress on this from of read input and chnaging them. I hope you can help me with this.
Thirdly:
As my database fills, every day, I would like it to output a file containing data from within it. The file should follow the following basis.
Eg.
Code: Select all
Database output
Customizable text Here
Database Item 1: Chapter One - Philosophy.pdf
Database Item 2: Name
Database Item 3: Name
Database Item 4: Name
Database Item 5: Name
More customizable text here
Thankyou for reading this far. I am willing to learn so tutorials would be wonderful but even if you can only post a quick tip, it would be much appreciated. Once this task is complete, I aim to learn php to a much fuller extent but I currently need to finish this. Please ask me any questions if you do not understand what I am trying to achieve.
Thanks for your replies.