开发者

Simple PHP echo help

How could I add an echo in here

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

I have tried a few things with no luck.开发者_StackOverflow


It's just a mere guess, but perhaps you want to do something like that:

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


You could do something like:

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

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

echo $location;


You don't need to echo, since you are passing it to a function not trying to display it in the output.

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜