【发布时间】:2014-03-08 03:34:34
【问题描述】:
我使用centos os 构建了一个Web 服务器,并上传了一个joomla 源代码。
网站运行正常!但是当我上传文件时,有些文件我可以得到$_FILE["name"]["tmp_name"],有些文件我不能得到$_FILE["name"]["tmp_name"]
我不知道原因。
经验:
$attachment = $_FILES['upload'];
echo "<pre>";
print_r($attachment);
输出: 在 centos 操作系统上:
Array
(
[name] => Array
(
[0] => myfile.zip
[1] =>
[2] =>
[3] =>
[4] =>
[5] =>
)
[type] => Array
(
[0] => //cannot get
[1] =>
[2] =>
[3] =>
[4] =>
[5] =>
)
[tmp_name] => Array
(
[0] => //cannot get
[1] =>
[2] =>
[3] =>
[4] =>
[5] =>
)
}
在窗口上:
Array
(
[name] => Array
(
[0] => myfile.zip
[1] =>
[2] =>
[3] =>
[4] =>
[5] =>
)
[type] => Array
(
[0] => application/octet-stream
[1] =>
[2] =>
[3] =>
[4] =>
[5] =>
)
[tmp_name] => Array
(
[0] => C:\wamp\tmp\phpC2D7.tmp
[1] =>
[2] =>
[3] =>
[4] =>
[5] =>
)
}
感谢收看!
【问题讨论】:
标签: php linux joomla permissions centos