In PHP, I need to retrieve the path to the Downloads folder on Windows.
I'm currently using a static path, but I'd like to make the username dynamic:
$dir = 'C:\Users\ravi.kumar\Downloads';
I need the username of the system where the downloads folder exists. Any code query which can give either the Windows username or the Downloads folder path would help.