PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm new to PHP, and I'm trying to upload a file
but everytime I try I get the following error message :
Warning: Unable to create '/usr/www/users/weblet/fmtest/uploads/Ckinfo.txt': Permission denied in /usr/www/users/weblet/fmtest/upload_go.php on line 18
Warning: Unable to move '/tmp/phpyZaS22' to '/usr/www/users/weblet/fmtest/uploads/Ckinfo.txt' in /usr/www/users/weblet/fmtest/upload_go.php on line 18
Possible file upload attack! Heres some more info:
Array
(
[userfile] => Array
(
[name] => Ckinfo.txt
[type] => text/plain
[tmp_name] => /tmp/phpyZaS22
[error] => 0
[size] => 1392
)
If you use a unix server and an FTP program like Cute FTP, Smart FTP or WSFTP Pro, right click on the file or directory you want to CHMOD, scroll down to "CHMOD" on the list you'll get, and change the number in the little box to either "775" or "777."