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 Quote 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! Quote 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 Quote 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. Quote 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. Quote 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) Quote 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. Quote 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? Quote 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();"> Quote 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. Quote 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'] Quote 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'] Quote 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();"> Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.