Jump to content

New to PHP yet a simple upload script doesn't work


phillips321

Recommended Posts

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
        )

)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.