Go4Expert

Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   Using UPLOAD in PHP (http://www.go4expert.com/forums/using-upload-php-t14846/)

Bhullarz 29Oct2008 06:10

Using UPLOAD in PHP
 
Hi ! I am learning PHP now. Can somebody tell me how to upload images using PHP. I am trying to develop website for which I have to upload images. I have prepared forms in which one field is image. I want to upload the image to server where i have hosted the website. Can somebody help me in this like what would be preferable uploading image to MySQL database or uploading image directly to server ?

pete_bisby 17Nov2008 00:16

Re: Using UPLOAD in PHP
 
Have a look at this page within the PHP Manua (http://uk.php.net/manual/en/features.file-upload.php)

Also, I would advise you to upload your images directly to the server and not to the database. You would be creating unnecessary overhead in your database, because you would have to convert the images to BLOBs, which are very large.


All times are GMT +5.5. The time now is 21:47.