$upload_path = **'./uploads'/**; // The place the files will be uploaded to
我想用登录用户名更改上传路径(corrent:uploads)。如何更改登录用户的upload.php路径?
$upload_path = **'./uploads'/**; // The place the files will be uploaded to
我想用登录用户名更改上传路径(corrent:uploads)。如何更改登录用户的upload.php路径?
你有没有试过类似的东西?
$user = "admin"; //or whatever
$upload_path = "/uploads/" . $user;
我真的不明白你的问题,但这里有一个例子
$upload_path = './' . ($logged_in ? $username : 'uploads') . '/';
$ upload_path ='./users/'.$_SESSION['user_name'].'/'; – user1560998 2012-07-31 09:46:14
$ upload_path = './users/'.$_SESSION['user_name'].'/'; – user1560998 2012-07-31 09:46:37