agonyzt Posted October 13, 2007 Share Posted October 13, 2007 Hi, I just coded a php script to upload file on my server. The whole thing is working but when I upload a file I get this warning: Warning: rename(/var/tmp/phpfoeojS,upload/file.JPG) [function.rename]: Operation not permitted in /usr/local/www/apache22/data/upload.php on line 21 The funny thing is that the file as been uploaded successfully and is readable... Any idea how I could get rid of this warning ? The permissions on the upload directories are set to 770 owner www:user. I set the owner group to user so he can manage his files from his shell account too... Thank you, John Link to comment https://forums.phpfreaks.com/topic/73137-solved-warning-rename-but-still-working/ Share on other sites More sharing options...
kratsg Posted October 13, 2007 Share Posted October 13, 2007 You've got a function call that tries to rename the file. Just add a "@" in front of all functions if you don't want any errors echoed. Link to comment https://forums.phpfreaks.com/topic/73137-solved-warning-rename-but-still-working/#findComment-368807 Share on other sites More sharing options...
agonyzt Posted October 13, 2007 Author Share Posted October 13, 2007 thank you, it's now working great ! Link to comment https://forums.phpfreaks.com/topic/73137-solved-warning-rename-but-still-working/#findComment-368808 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.