Jump to content

Archived

This topic is now archived and is closed to further replies.

Ninjakreborn

php(mailing detection)

Recommended Posts

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]

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
If I do that is there a way for me to pass the information from java script to php for emailing.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Hmm thanks I appreciate it, I am going to go play now with that and my design, I appreciate the help, thanks.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.