php.net |  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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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">
</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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-14 15:08 UTC] sander@php.net
You're probably doing something wrong. Ask support questions on the appropriate mailinglist.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon May 05 23:01:28 2025 UTC