Bug #10956: move_uploaded_file()

From: Date: Fri, 18 May 2001 16:12:24 +0000
Subject: Bug #10956: move_uploaded_file()
Groups: php.dev 
Request: Send a blank email to php-dev+get-55794@lists.php.net to get a copy of this message
From: dziadek@pnet.pl Operating system: Linux PHP version: 4.0.5 PHP Bug Type: Filesystem function related Bug description: move_uploaded_file() 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. -- Edit Bug report at: http://bugs.php.net/?id=10956&edit=1

« previous php.dev (#55794) next »