RE: [PHP-WIN] Moving an uploaded file keeps failing
| From: | Chris Kranz | Date: | Mon, 20 Jan 2003 20:59:08 +0000 |
| Subject: | RE: [PHP-WIN] Moving an uploaded file keeps failing | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-17998@lists.php.net to get a copy of this message | ||
move_uploaded_file("d:\\temp\\" . $_FILES['userfile']['tmp_name'],
"d:\\blah.txt");
see if that creates a file called blah.txt
if it does, then you gonna have to name your file, rather than just tell
it d:\
chris kranz
fatcuban.com
-----Original Message-----
From: Matt Babineau [mailto:matt@criticalcode.com]
Sent: Monday, January 20, 2003 8:50 PM
To: 'PHP Windows Helplist'
Subject: RE: [PHP-WIN] Moving an uploaded file keeps failing
UPDATE:
Ok, I got the page to stop giving me errors by supplying the source file
path like this:
move_uploaded_file("d:\\temp\\" . $_FILES['userfile']['tmp_name'],
"d:\\");
But that still doesn't move the uploaded file to the d:\ either.
Any ideas?