0
  $upload_path = **'./uploads'/**; // The place the files will be uploaded to 

我想用登录用户名更改上传路径(正确:上传)。

4

2 回答 2

1

你有没有尝试过这样的事情?

$user = "admin"; //or whatever
$upload_path = "/uploads/" . $user;
于 2012-07-29T13:32:22.313 回答
1

我不太明白你的问题,但这里有一个例子

$upload_path = './' . ($logged_in ? $username : 'uploads') . '/';
于 2012-07-29T13:32:41.283 回答