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");
精彩评论