note 98233 added to features.file-upload.post-method
| From: | MartenvanUrk at osu1 dot php dot net | Date: | Thu, 03 Jun 2010 09:54:15 +0000 |
| Subject: | note 98233 added to features.file-upload.post-method | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-169842@lists.php.net to get a copy of this message | ||
A small correction on rusarmy's post:
<?php
function subSortFiles(&$arr, &$mask, $param)
{
foreach ($arr as $key => $value)
{
if (!is_array($mask[$key]))
{
$mask[$key] = array();
}
if (is_array($value))
{
subFixFiles($value, $mask[$key], $param);
}
else
{
$mask[$key][$param] = $value;
}
}
}
?>
should be:
<?php
function subSortFiles(&$arr, &$mask, $param)
{
foreach ($arr as $key => $value)
{
if (!is_array($mask[$key]))
{
$mask[$key] = array();
}
if (is_array($value))
{
subSortFiles($value, $mask[$key], $param);
}
else
{
$mask[$key][$param] = $value;
}
}
}
?>
the function subFixFiles don't exist though. So this need to be subSortFiles
----
Server IP: 69.147.83.197
Probable Submitter: 217.166.57.98
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.post-method.php
Edit -- https://master.php.net/note/edit/98233
Del: integrated -- https://master.php.net/note/delete/98233/integrated
Del: useless -- https://master.php.net/note/delete/98233/useless
Del: bad code -- https://master.php.net/note/delete/98233/bad+code
Del: spam -- https://master.php.net/note/delete/98233/spam
Del: non-english -- https://master.php.net/note/delete/98233/non-english
Del: in docs -- https://master.php.net/note/delete/98233/in+docs
Del: other reasons-- https://master.php.net/note/delete/98233
Reject -- https://master.php.net/note/reject/98233
Search -- https://master.php.net/manage/user-notes.php