phillips321 Posted September 23, 2007 Share Posted September 23, 2007 Hi guys, i know php works fine on my site as i have fotopholder running fine on it. I'm trying to create an upload script using http://snippets.dzone.com/posts/show/3729 but i keep getting an error, anyone know what this error means and how to solve it? many thanks P.s. ubuntu 6.06LTS and apache2 Warning: move_uploaded_file(/var/www/uploads/me.gif) [function.move-uploaded-file]: failed to open stream: No such file or directory in /media/data/forumpix.co.uk/upload.php on line 8 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpfSRbit' to '/var/www/uploads/me.gif' in /media/data/forumpix.co.uk/upload.php on line 8 Upload failed Here is some more debugging info:Array ( [userfile] => Array ( [name] => me.gif [type] => image/gif [tmp_name] => /tmp/phpfSRbit [error] => 0 [size] => 32658 ) ) Quote Link to comment https://forums.phpfreaks.com/topic/70335-new-to-php-yet-a-simple-upload-script-doesnt-work/ Share on other sites More sharing options...
~n[EO]n~ Posted September 23, 2007 Share Posted September 23, 2007 you should make your folder writable... CHMODE 777 through your FTP program Quote Link to comment https://forums.phpfreaks.com/topic/70335-new-to-php-yet-a-simple-upload-script-doesnt-work/#findComment-353316 Share on other sites More sharing options...
phillips321 Posted September 23, 2007 Author Share Posted September 23, 2007 one thing i have noticed is that it's trying to reference the file /var/www/uploads/me.gif but it should be referencing it as: /media/data/forumpix.co.uk/uploads/me.gif any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/70335-new-to-php-yet-a-simple-upload-script-doesnt-work/#findComment-353317 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.