Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

geting user details
hello.
i would like to know how to get the browser details of my surfers (like: ip,
langauge, version, OS, etc').

if you have a link to some information or manual it will be great.

thanks,
Roe.



Report this thread to moderator Post Follow-up to this message
Old Post
Roy zo
04-27-05 01:55 AM


Re: geting user details
"Roy zo" <dindinick@hotmail.com> wrote in message
news:d4m7vd$h7l$1@news2.netvision.net.il...
> hello.
> i would like to know how to get the browser details of my surfers (like:
> ip,
> langauge, version, OS, etc').
>
> if you have a link to some information or manual it will be great.
>

<html>
<body>
<pre>
<?php
var_dump($_SERVER);
var_dump($_REQUEST);
?>
</pre>
</body>
</html>

Run that, and pick the things you need.

Other arrays of predefined variables:
(You'll also find these from <URL:http://fi2.php.net/variables.predefined> )

PHP Superglobals
$GLOBALS
Contains a reference to every variable which is currently available within
the global scope of the script. The keys of this array are the names of the
global variables. $GLOBALS has existed since PHP 3.
$_SERVER
Variables set by the web server or otherwise directly related to the
execution environment of the current script. Analogous to the old
$HTTP_SERVER_VARS array (which is still available, but deprecated).
$_GET
Variables provided to the script via HTTP GET. Analogous to the old
$HTTP_GET_VARS array (which is still available, but deprecated).
$_POST
Variables provided to the script via HTTP POST. Analogous to the old
$HTTP_POST_VARS array (which is still available, but deprecated).
$_COOKIE
Variables provided to the script via HTTP cookies. Analogous to the old
$HTTP_COOKIE_VARS array (which is still available, but deprecated).
$_FILES
Variables provided to the script via HTTP post file uploads. Analogous to
the old $HTTP_POST_FILES array (which is still available, but deprecated).
See POST method uploads for more information.
$_ENV
Variables provided to the script via the environment. Analogous to the old
$HTTP_ENV_VARS array (which is still available, but deprecated).
$_REQUEST
Variables provided to the script via the GET, POST, and COOKIE input
mechanisms, and which therefore cannot be trusted. The presence and order of
variable inclusion in this array is defined according to the PHP
variables_order configuration directive. This array has no direct analogue
in versions of PHP prior to 4.1.0. See also import_request_variables().

--
Welcome to Usenet! Please leave tolerance, understanding
and intelligence at the door. They aren't welcome here.
eternal piste erection miuku gmail piste com



Report this thread to moderator Post Follow-up to this message
Old Post
Kimmo Laine
04-27-05 08:56 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:29 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.