Código PHP:
Ver original
<?php $file_dir="/wamp/tmp/foto/"; foreach ($_FILES as $file_name=> $file_array){ echo "path: ".$file_array['"tmp_'name"]."<br/>\n"; echo "name: ".$file_array[''"name"]."<br/>\n"; echo "type: ".$file_array["'type'"]."<br/>\n"; echo "size: ".$file_array[''"size"]."<br/>\n"; if (is_uploaded_file($file_array['"tmp_'name"])){ move_uploaded_file($fiel_array['"tmp_'name"], "$file_dir/".$file_array["name"]") or die ("couldn't copy"); echo "file was moved|<br/>"; } } ?>
codigo de error:
( ! ) Parse error: syntax error, unexpected T_STRING, expecting ']' in C:\wamp\www\ejerciciosphpmysql\do_upload.php on line 4
alguien me explica lo que pasa?