RE: [PHP-WIN] Moving an uploaded file keeps failing
| From: | Matt Babineau | Date: | Mon, 20 Jan 2003 21:05:39 +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-17999@lists.php.net to get a copy of this message | ||
I tried that, and it did not create d:\blah.txt.
Alternatively, I also tried
"d:\\" . $_FILES['userfile']['name']
With no luck either.
--> -----Original Message-----
--> From: Chris Kranz [mailto:chris@kranz.com]
--> Sent: Monday, January 20, 2003 3:59 PM
--> To: php-windows@lists.php.net
--> Subject: RE: [PHP-WIN] Moving an uploaded file keeps failing
-->
-->
--> 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?
-->
-->
-->
--> --
--> PHP Windows Mailing List (http://www.php.net/)
--> To unsubscribe, visit: http://www.php.net/unsub.php
-->
-->