Use PHP to detect which htaccess user signed in?

后端 未结 6 1142
盖世英雄少女心
盖世英雄少女心 2020-12-15 17:24

I\'m constructing an upload so people I know can send me files securely, and with ease. But I want to design it just so, that when one of my friends sign in with their

6条回答
  •  甜味超标
    2020-12-15 18:11

    Something that worked for me:

    $_SERVER['REDIRECT_REMOTE_USER']
    

    Please try the above. In general, one can do "print_r($_SERVER)" and hunt out the parameter one is looking for.

提交回复
热议问题