Ninjakreborn Posted May 31, 2006 Share Posted May 31, 2006 I am trying to write up my own script now, on my site, I have a seperate inbox set up for it, I am wanting to write a script to detect a browser, ip number, operating system, what set of functions should I use from php or what terms should I search for to get a pretty good list of what I can pull from the power of php that involves detection. because when I write the script I am wanting to write it to where it emails me to that box everytime someone visits that site, and I want it to email me there ip address, browser, whether they have javascript java and cookies on, and some other stuff, and then I can save the data by there ip, so I know how many time each person with each ip comes, and as well I will know what sites they visit as I get an email everytime they open up a new page, so I can follow them in real time, it would be interesting. Thanks. The question was by the way in case if it's confusing[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]what set of functions should I use from php, or what terms should I search for to get a pretty good list of what I can pull from the power of php that involves "detection",[/quote] Link to comment https://forums.phpfreaks.com/topic/10892-phpmailing-detection/ Share on other sites More sharing options...
poirot Posted May 31, 2006 Share Posted May 31, 2006 OK, as for:Browser/Operating system/Browser Capabilities: get_browser()[a href=\"http://www.php.net/get_browser\" target=\"_blank\"]http://www.php.net/get_browser[/a]IP Number: $_SERVER['REMOTE_ADDR']Javascript/Java: You can use Javascript to check if they are on.Cookies: You can try this by setting a cookie and see what happens. Link to comment https://forums.phpfreaks.com/topic/10892-phpmailing-detection/#findComment-40679 Share on other sites More sharing options...
Ninjakreborn Posted May 31, 2006 Author Share Posted May 31, 2006 If I do that is there a way for me to pass the information from java script to php for emailing. Link to comment https://forums.phpfreaks.com/topic/10892-phpmailing-detection/#findComment-40683 Share on other sites More sharing options...
poirot Posted May 31, 2006 Share Posted May 31, 2006 Yes there is. A simple example on how to detect javascript is:[code]<body onload="document.getElementById('detect').value='on">(...)<input type="hidden" name="javascript" id="detect" value="off">[/code]When the form is submitted you'll know if JS is on or not Link to comment https://forums.phpfreaks.com/topic/10892-phpmailing-detection/#findComment-40687 Share on other sites More sharing options...
Ninjakreborn Posted May 31, 2006 Author Share Posted May 31, 2006 Hmm thanks I appreciate it, I am going to go play now with that and my design, I appreciate the help, thanks. Link to comment https://forums.phpfreaks.com/topic/10892-phpmailing-detection/#findComment-40688 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.