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 ?
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 08:32.|