GoneNowBye Posted December 21, 2009 Share Posted December 21, 2009 IP adress Host Name User-Agent - Browser - Version - OS but what else? resolution? what else can you obtain about your visitors from / though php. I would like to find out visitors resolutions is this actually doable in php (lf not how would it be done) Havok Link to comment https://forums.phpfreaks.com/topic/185919-so-what-can-you-detect-about-a-visitor/ Share on other sites More sharing options...
micah1701 Posted December 21, 2009 Share Posted December 21, 2009 <pre> <?php print_r($_SERVER); ?> </pre> enter that and behold all the info! Link to comment https://forums.phpfreaks.com/topic/185919-so-what-can-you-detect-about-a-visitor/#findComment-981754 Share on other sites More sharing options...
GoneNowBye Posted December 21, 2009 Author Share Posted December 21, 2009 been there done that, but more advanced stuff, - reolution for example my old geoforms site did do it somehow by default, without javascript any ideas as to how Link to comment https://forums.phpfreaks.com/topic/185919-so-what-can-you-detect-about-a-visitor/#findComment-981756 Share on other sites More sharing options...
teynon Posted December 21, 2009 Share Posted December 21, 2009 http://www.tellinya.com/read/2007/11/12/235.html# PHP can't detect a resolution because the browser doesn't send that information. Use javascript. Read the article posted. Link to comment https://forums.phpfreaks.com/topic/185919-so-what-can-you-detect-about-a-visitor/#findComment-981758 Share on other sites More sharing options...
micah1701 Posted December 21, 2009 Share Posted December 21, 2009 PHP doesn't know any of that stuff. PHP runs SERVER SIDE, meaning on your server not on the client-side. You need javascript or some other client-side language to get information about the browser. Link to comment https://forums.phpfreaks.com/topic/185919-so-what-can-you-detect-about-a-visitor/#findComment-981759 Share on other sites More sharing options...
GoneNowBye Posted December 21, 2009 Author Share Posted December 21, 2009 okay thats alll good how did geoforms do it is there any other way you can think of? at all (i do know what php does dont worrie - hence i dragged my loly question here) Link to comment https://forums.phpfreaks.com/topic/185919-so-what-can-you-detect-about-a-visitor/#findComment-981770 Share on other sites More sharing options...
teynon Posted December 21, 2009 Share Posted December 21, 2009 http://www.tellinya.com/read/2007/11/12/235.html# PHP can't detect a resolution because the browser doesn't send that information. Use javascript. Read the article posted. Link to comment https://forums.phpfreaks.com/topic/185919-so-what-can-you-detect-about-a-visitor/#findComment-981772 Share on other sites More sharing options...
GoneNowBye Posted December 21, 2009 Author Share Posted December 21, 2009 last thing before i call this solved, how do you make a javascript function execute on page load? Link to comment https://forums.phpfreaks.com/topic/185919-so-what-can-you-detect-about-a-visitor/#findComment-981776 Share on other sites More sharing options...
teynon Posted December 21, 2009 Share Posted December 21, 2009 Javascript question... <body onLoad="javascriptFunction();"> Link to comment https://forums.phpfreaks.com/topic/185919-so-what-can-you-detect-about-a-visitor/#findComment-981778 Share on other sites More sharing options...
Daniel0 Posted December 21, 2009 Share Posted December 21, 2009 Apart from the IP address you don't really know anything else than what the client tells you itself. Link to comment https://forums.phpfreaks.com/topic/185919-so-what-can-you-detect-about-a-visitor/#findComment-981799 Share on other sites More sharing options...
akitchin Posted December 21, 2009 Share Posted December 21, 2009 A/S/L: $_SERVER['ASL'] Link to comment https://forums.phpfreaks.com/topic/185919-so-what-can-you-detect-about-a-visitor/#findComment-981801 Share on other sites More sharing options...
teynon Posted December 21, 2009 Share Posted December 21, 2009 SSN: $_SERVER['SSN'] Link to comment https://forums.phpfreaks.com/topic/185919-so-what-can-you-detect-about-a-visitor/#findComment-981802 Share on other sites More sharing options...
GoneNowBye Posted December 22, 2009 Author Share Posted December 22, 2009 <body onLoad="javascriptFunction(FUNCTION NAME);"> or <body onLoad="javascript:FUNCTIONNAME();"> Link to comment https://forums.phpfreaks.com/topic/185919-so-what-can-you-detect-about-a-visitor/#findComment-981948 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.