如何获取客户端的用户名而不是服务器所在的位置? [英] How Do I Get Username Of The Client Instead Of Where The Server Reside?

查看:59
本文介绍了如何获取客户端的用户名而不是服务器所在的位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



在php中如何获取客户端的用户名而不是服务器端信息?



我已经尝试了所有包括shell_exec但没有运气。任何信息都将不胜感激。



谢谢,

Hi all,

In php how do i get get username of the client side instead of the server side info?

I have tried everything include shell_exec but no luck. Any info wil be greatly appreciated.

thanks,

推荐答案

你必须更加具体,我真的不明白这个问题。用户信息存储在服务器上。 PHP在客户端上没有做任何事情,因为它是一种服务器脚本语言。我能想到的简单的事情就是创建一个简单的函数,从数据库中获取用户名并将其存储到稍后可以使用的局部变量中。



如果没有更清楚的问题,这就是我能想到的全部。
You'll Have to be more specific, I'm not really understanding the question. User information is stored on the server. PHP doesn't do anything on the client as it's a server scripting language. The simple thing to do that I can think of is to create a simple function that gets the username from the database and stores it into a local variable that can be used later on.

Without a clearer question, this is All I can think of.


这篇关于如何获取客户端的用户名而不是服务器所在的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆