Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Php image upload (https://www.warriorforum.com/programming/281130-php-image-upload.html)

samuel.johnson 1st November 2010 08:56 AM

Php image upload
 
Hi,

I am new to php.

Right now I am trying some sample php code.

I want to upload image using php.

I have tried but didn't get the output.

Any help will be appreciated.

jernej 1st November 2010 10:06 AM

Re: Php image upload
 
what error did you get?

is your php.ini configured properly?

infoman66 1st November 2010 09:30 PM

Re: Php image upload
 
How do you think you don't get the output ...
You think that picture is not upload on the server or that you can not see it in the browser ...

Upload the image step:
html form
Submit form with file a form field
=> php
Upload the image on the server
Save the image on the server in the target directory
=> php or html
Require an image through the browser..

Be careful about the size of images, usually because the servers do not allow uploading files larger than 2 - 8 MB through a form (check in php ini) ...


All times are GMT -6. The time now is 10:24 AM.