Easy way to Upload files using PHP
There is a traditional way of uploading files in php usually developers use, that is, use functions is_uploaded_file() and move_uplaoded_file(). These functions my create problems sometimes. function move_uplaoded_file() sometimes does not let you move file to a specific folder, may be becuase your account does not have permission to move a temporary file to some folder in your account. I encountered same problem when my client reported me that he has ful permissions to write a file anywhere in any folder, and he has successfully chmod-ed the folders to 777 / 666 (on unix server), but he still cannot get the admin panel script to perform uploading of image. Then I came to know that I must not use move_uplaoded_file, but find some other way to read the file data and write it myself whereever I want. So I came up with following things.
Views: 528 | | by Brad
View this tutorial