This is a discussion on Re: [PHP] upload picture within the PHP General forums, part of the PHP Programming Forums category; --- Matt Hedges <matt@hedges.org> wrote: > Hello... could anyone please tell me how to upload a picture ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--- Matt Hedges <matt@hedges.org> wrote:
> Hello... could anyone please tell me how to upload a picture using > php? > > I have this > > <input type="file" name="picture1" size="20"> > > but don't know how to specify how to store the pictures on the server. You should look here: http://www.php.net/manual/en/ref.filesystem.php All you want to do is open a file, write to it, and close it. Hope that helps. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook http://httphandbook.org/ |
|
|||
|
--- Chris Shiflett <shiflett@php.net> wrote:
> All you want to do is open a file, write to it, and close it. I should have read all of your question. :-) I believe you will find that the uploaded file is already on the filesystem, and you can look in $_FILES to find the location. Hope that helps. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook http://httphandbook.org/ |