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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
14 - 5 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 05:01:28 2024 UTC