sachu wrote:
Hi Csaba,
The solution given by you works only on the server side....[In the
Of course.
Good that you give an example.
sense, the system which runs apache server]. To be clear lets say s1 is
server comp and u1 as the user of this server. s2 as the client comp
and u2 as the user of this comp.
When i ran the code on the comp u2 it returned me the system name as s1
and the user name as u1.I want it to return the user name of the system
where this php page is opened.
Please help me..
By what right should s1 have access to any knowledge of s2, or users
thereof? s1 gets only the information that s2 chooses to send, and
that is fairly minimal because of privacy concerns (ie. the IP address
and sometimes info about the operating system/browser). And you can
see this info using phpinfo() or in your server logs. The access to s2
of php that is running on s1 is zilch, unless you are leaving out a big
aspect of your situation.
In general, if you want to match up a client's request with a previous
request, set a cookie in the client's browser or use sessions.
Csaba