tags:

views:

82

answers:

4

Hi ,

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.

+1  A: 

You could do something like:

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

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

echo $location;
Ian P
+1  A: 

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");
James
+5  A: 

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");
Stefan Gehrig
+1 for understand what the OP wants to do. :D
NawaMan
+1 for understanding the question as well :)
Andrei Serdeliuc
A: 

This may be useful: String Operators.

Davide Gualano