ID: 10956
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Filesystem function related
Operating System: Linux
PHP Version: 4.0.5
New Comment:

You're probably doing something wrong. Ask support questions on the appropriate 
mailinglist.

Previous Comments:
------------------------------------------------------------------------

[2001-05-18 12:12:24] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=10956&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to