Re: Re: [PHP-WIN] Problem with file upload!!

From: Date: Wed, 19 Feb 2003 08:39:13 +0000
Subject: Re: Re: [PHP-WIN] Problem with file upload!!
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-18595@lists.php.net to get a copy of this message
It means it is unable to move the file. Sarcasm aside, look at the error message. At 00:22 19/02/2003 +0000, you wrote:
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\PHP\uploadtemp\php98.tmp' to '/frettamyndir/fastfood.jpg' in C:\riddarinn\Process.php on line 16 Can anyone tell me what this means? thx Palli
Whats it telling you ? Its saying unable to move the temporary file upload to its final destination. Now that detsination is /frettamyndir/fastfood.jpg : You are using windows. Does this look like a windows file path to you ? Me neither, so supply the move_uploaded_file function with a real file path like you would for any filesystem function, because move_uploaded deals with your raw file system, not your web server's document. structure. Clear ? Cool. BTW if you look in the C:\PHP\uploadtemp directory, you will be able to verify the file uploads taking place, when you see a number of files phpXX.tmp created during uploads. They may be deleted by garbage collection in normal operation. Cheers, Neil Smith.

« previous php.windows (#18595) next »