Topic awaiting preservation: file upload (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: |
posted 06-30-2004 15:37
yo guys, anybody got any idea how i can set up a php script that uploads a picture from <input type="file"> from a form on my webpage and uploads it so that other users can see it |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 06-30-2004 16:14
I'd start by reading up on how php handles file uploads in the manual. |
Bipolar (III) Inmate From: iasi, romania |
posted 06-30-2004 18:17
Hmm, write links with fopen in a html page? That kinda has no sense, php is for generating dynamic pages mostly, why make it write static pages? |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 06-30-2004 18:59
The database might be a better idea. Then dynamically generate the page's links via a page. Moving further along this topic. Does anyone have any links on including meta-data and parsing meta-data from pictures (jpeg, gif, png)? This sort of ability could be pretty useful. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 06-30-2004 19:00
because writing the links into a file is the easiest way to store them. |
Bipolar (III) Inmate From: iasi, romania |
posted 07-01-2004 00:47 |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 07-01-2004 01:46
Ah, but if you could add the meta data while the file is being transfered. Instead of storing the data a DB or a separate file it could all be encoded in the image. |
Paranoid (IV) Inmate From: New Jersey, USA |
posted 07-01-2004 04:26
WarMage |
Bipolar (III) Inmate From: iasi, romania |
posted 07-01-2004 08:45
Ok, but WHAT metadata? How will a script know who the person is, what ocasion has the photo been made on... OR you mean that the person should write it in an input field before submitting? |