Zend - The PHP Company




Code Gallery: thephpguy


upload controler by thephpguy.com  

Type: code fragment
Added by: thephpguy
Entered: 24/04/2005
Last modified: 02/12/2005
Rating: - (fewer than 3 votes)
Views: 3837
With this script you can easily control: 1. What extentions can be uploaded. 2. the size of the file 3. (only applies to images) Set a max or min. height and width 4.Change the name of the file to what you want. (i.e. username) 5. Change the extention of the file.(you may wish to do this for security reasons say you allow .php files to be uploaded, you could turn evil.php into evil.nullified)




Search