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
Uploading image.?
Moderator: General Moderators
Re: Uploading image.?
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");- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Re: Uploading image.?
This is quite a straightforward tutorial: http://www.tizag.com/phpT/fileupload.php