I have some real simple code to upload a file and it it not working... any suggestions?
Form:
PHP Code:
<b>Select your File: </b><input type="file" name="userfile"> <input type="hidden" name="MAX_FILE_SIZE" value="24000">
Process Form:
PHP Code:
copy ($userfile, "/batch/".$userfile_name) or die ("Could not copy");
$file = $userfile_name;
Error:
Quote:
Warning: copy(C:\\Documents and Settings\\Administrator\\Desktop\\orders.csv): failed to open stream: No such file or directory in /home/buywell/public_html/bulk_order_process.php on line 14
Could not copy
|
Look at the local file path, why would \\ be showing up instead of \. I'm thinking that's the problem but how could I replace \\ with \ to give it a try. Php gets funny when you do \' or \".
Thanks!
|