Re: [PHP] upload picture

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


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-07-2004
Chris Shiflett
 
Posts: n/a
Default Re: [PHP] upload picture

--- 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/
Reply With Quote
  #2 (permalink)  
Old 01-07-2004
Chris Shiflett
 
Posts: n/a
Default Re: [PHP] upload picture

--- 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/
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 12:52 PM.


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