简单的PHP回声帮助

时间:2009-11-04 13:49:08

标签: php

我怎么能在这里添加回声

move_uploaded_file($_FILES["torrent"]["tmp_name"], "uploads/  (HERE)   .torrent");

我尝试了一些没有运气的事情。

3 个答案:

答案 0 :(得分:6)

这只是一个猜测,但也许你想做那样的事情:

$newFileName = 'someFielenameGeneratedByYourScript';
move_uploaded_file($_FILES["torrent"]["tmp_name"], "uploads/" . $newFileName . ".torrent");

答案 1 :(得分:1)

您可以执行以下操作:

$location = "uploads/" . $name . ".torrent";

move_uploaded_file($_FILES["torrent"]["tmp_name"], $location);

echo $location;

答案 2 :(得分:1)

您不需要回显,因为您将其传递给不尝试在输出中显示它的函数。

move_uploaded_file($_FILES["torrent"]["tmp_name"], "uploads/  ".$variable."   .torrent");