Solution to the problem: instead of trying to write it to "/image/filename" I write it to "../image/filename", that solves my problem :) /Peter "Peter Lauri" <peter@xxxxxxxx> skrev i meddelandet news:20041116161019.0906748E3@xxxxxxxxxxxxxxxxxxxxx > Thank you. Now I am getting somewhere, but I get this error-msg now, I do > not understand the content of it. Have tried to read about the Auth in PHP > but I did not get any information to solve the problem: > > Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script > whose uid is 113323 is not allowed to access / owned by uid 0 in > /customers/devdws.com/devdws.com/httpd.www/admin/imageadmin.php on line 36 > Possible file upload attack! > Here is some more debugging info:Array > ( > [userfile] => Array > ( > [name] => but_hide.gif > [type] => image/gif > [tmp_name] => /tmp/phpugQpuz > [error] => 0 > [size] => 1054 > ) > > ) > > - BEST OF TIMES > > /Peter > > "Burhan Khalid" <phplist@xxxxxxxxxxxx> skrev i meddelandet > news:<1100615573.13148.27.camel@xxxxxxxxxxxxxxxxxxxxxxxx>... > > On Tue, 2004-11-16 at 14:58 +0100, Peter Lauri wrote: > > > Best groupmember, > > > > > > I am implementing a script to upload a file to my webserver. I am using > this > > > form that I copied from a working application: > > > > > [ snipped ] > > > To handle the form I am using this script... > > > > > > if($File) { > > > if(copy($File, $File_name)) { > > > echo 'The image was not uploaded!'; > > > } else { > > > echo 'The file was not uploaded!'; > > > } > > > } > > > > > > It does not even enter the if($File) part (checked it witch echos). > > > > Use move_uploaded_file() -- and read > > http://www.php.net/manual/en/features.file-upload.php > > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php