user´s data

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
visonardo
Forum Contributor
Posts: 136
Joined: Mon Oct 02, 2006 7:49 pm
Location: Argentina, South America´s Sun.

user´s data

Post by visonardo »

Why i want that? by it -> viewtopic.php?p=333744#333744

I want to know how can i keep all visitor´s data. why? because i need put this vars to my script that read remotes sites and if you saw the example shown over, will understand.

My idea is do a php that show me this values that can take with php from the user (i would be the user) and then set this value to my script and solve my problem.
User avatar
visonardo
Forum Contributor
Posts: 136
Joined: Mon Oct 02, 2006 7:49 pm
Location: Argentina, South America´s Sun.

Post by visonardo »

i did this php file

Code: Select all

<?
echo '<pre>';
print_r(get_browser(null,true));
?>
but show me it:

Warning: get_browser(): browscap ini directive not set. in /home2/leonardo/public_html/m.php on line 3


btw, how take all this data php? from the headers? :P


how can i show alll headers sent by user´s browser? :?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

get_browser() requires some php.ini alternations, otherwise you need to use an alternative.. I've posted at least one before...

apache_request_headers() may be of interest if you're running on Apache and the functions are enabled/installed.
User avatar
visonardo
Forum Contributor
Posts: 136
Joined: Mon Oct 02, 2006 7:49 pm
Location: Argentina, South America´s Sun.

Post by visonardo »

thank feyd :D
Post Reply