PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
copy ($userfile, "/batch/".$userfile_name) or die ("Could not copy");
$file = $userfile_name;
Error:
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 \".