|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-12-14 15:08 UTC] sander@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Jan 05 13:00:02 2026 UTC |
move_uploaded_file (string filename, string destination) if string filename is in array then function don't work and return false but if string filename is in normal variable then work. here is example(this not work): <? if ($go==1) { move_uploaded_file($ARR[foto],"/home/dziadek/public_html/webmind/temp/aaa.jpg");} ?> <FORM ENCTYPE="multipart/form-data" method="post"> <INPUT TYPE="file" name="ARR[foto]"> <INPUt TYPE="hidden" name="go" value=1> <INPUT TYPE="submit"> </FORM> this example work: <? if ($go==1) { move_uploaded_file($foto,"/home/dziadek/public_html/webmind/temp/aaa.jpg");} ?> <FORM ENCTYPE="multipart/form-data" method="post"> <INPUT TYPE="file" name="foto"> <INPUt TYPE="hidden" name="go" value=1> <INPUT TYPE="submit"> </FORM> I don't understand why fisrt example don't work. Sorry for my broken and easy English.