Bluehost.com Web Hosting $6.95

File Upload to a (Document)

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 ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-01-2004
iconpimp
 
Posts: n/a
Default File Upload to a (Document)

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


Reply With Quote
  #2 (permalink)  
Old 05-19-2004
lebedev
 
Posts: n/a
Default Re: File Upload to a (Document)

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


Reply With Quote
  #3 (permalink)  
Old 08-18-2004
Fixxer
 
Posts: n/a
Default Re: File Upload to a (Document)

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


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:18 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0