Get Windows username of current user using php? [duplicate]
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: How to read Windows loged in username with PHP/IIS I'm work on php tool that generate Data Access layer and generate some folders and files to user but i need to know how can i get username for current windows user to generate these folders on desktop ex: C:\\users\\<username>\\desktop I need to know the username. Thanks 回答1: If by current windows user you mean the user running the script then that is set in