This is a discussion on File Upload to a (Document) within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hey, Ok, Im trying to get our staff from iconpimp to be able to upload their buddy icons straight into ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hey,
Ok, Im trying to get our staff from iconpimp to be able to upload their buddy icons straight into the document, which they select. As you can see at www.iconpimp.com/uploader.html , you can choose which category you want to upload to. This just buts the image into a folder such as /car, /naughty, and so fourth. I was wondering if it is possiable to upload the file into the car.htm, or car.php document on the website. If so what is this called and where can I get it? www.iconpimp.com Awesome Buddy Icons For AIM ---------------------------------------- The post originated from PHP Freaks: ---------------------------------------- http://www.phpfreaks.com http://www.phpfreaks.com/forums |
|
|||
|
Well if you mean like upload the icon into a page which would hold a
specific category like Cars. Then you could have a database table for the icons, and have your upload script enter a new row for each icon submission with a category and a url of the icon. Then have a php page that queries the db to show all the icon url's based on a sertain category selection. And echo those url's as images. If you dont want to involve a db in this, you could also have your upload script just rename the icons while copying during the upload to names that would include a category in them or something. Some way to destinguish what category an icon is by looking at its file name. Then you could have a php page check the uploaded icons folder for all the file names, and check for those who have a category that was selected by the page. Also if you do it the second way, since you already have the uploader upload to different folders, you could just have a php page show all the files in that folder. Hope that helped. :P ---------------------------------------- The post originated from PHP Freaks: ---------------------------------------- http://www.phpfreaks.com http://www.phpfreaks.com/forums |
|
|||
|
keep it to STAFF ONLY. some random person could create a file called
delete.php which deletes everything in the folder that the upload is stored. you wouldnt want that to happen would you? ---------------------------------------- The post originated from PHP Freaks: ---------------------------------------- http://www.phpfreaks.com http://www.phpfreaks.com/forums |