|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10956 move_uploaded_file()
Submitted: 2001-05-18 12:12 UTC Modified: 2001-12-14 15:08 UTC
From: dziadek at pnet dot pl Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 4.0.5 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: dziadek at pnet dot pl
New email:
PHP Version: OS:


 [2001-05-18 12:12 UTC] dziadek at pnet dot pl
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">

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">

I don't understand why fisrt example don't work.

Sorry for my broken and easy English.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-14 15:08 UTC]
You're probably doing something wrong. Ask support questions on the appropriate mailinglist.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Sep 27 08:05:51 2022 UTC