Page 1 of 1

Uploading image.?

Posted: Tue Nov 18, 2008 12:40 am
by kaukab
Hello All

i want to upload a picture on local server which is install on my local machine
i have a code which is in html with few lines of php.
this code can select the image from a local machine through <input type="file" > and then it go to database through insert INTO Statement.
butt it doesn't upload on the server in www folder
and one give me a favour and tell me how can i figure out this problem



ok
bye
Thanks in advance

Re: Uploading image.?

Posted: Tue Nov 18, 2008 1:12 am
by requinix
You have to move the file where you want it manually. Something like

Code: Select all

move_uploaded_file($_FILES["input"]["tmp_name"], "/path/to/upload/directory");

Re: Uploading image.?

Posted: Tue Nov 18, 2008 3:26 am
by aceconcepts
This is quite a straightforward tutorial: http://www.tizag.com/phpT/fileupload.php