$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