You are here: Re: [PHP] client information « PHP « IT news, forums, messages
Re: [PHP] client information

Posted by Richard Lynch on 09/26/13 11:05

Greg Donald wrote:
> On Tue, 11 Jan 2005 10:10:37 -0800 (PST), Richard Lynch <ceo@l-i-e.com>
> wrote:
>> > what i need to know if its possible to find out more information about
>> > the client, like in linux the DISPLAY variable of the client ?
>>
>> It's incredibly unlikely that Linux browsers provide this info to the
>> web
>> server, so it's not going to be available to PHP.
>
>> php -r 'system("set|grep DISPLAY");'
> DISPLAY=65-86-94-210.client.dsl.net:0.0

-r isn't listed in my php -h, so I dunno what it does, but...

I don't think that's the DISPLAY environment variable set by the CLIENT
surfing from their Linux box is it?

Is that not the DISPLAY you, the webmaster, are using for your shell?

Which, in the case of a PHP Module of Apache, is most likely '' since the
server probably doesn't even have X on it, much less a shell environment
for the 'apache' User, much less a default DISPLAY variable set for that
user...

Try putting your code on your web server and surfing to it. What do you
get as output?

--
Like Music?
http://l-i-e.com/artists.htm

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация