|
Subject:
|
How to email IP and browser type on page load in p
|
|
Posted By:
|
method
|
Post Date:
|
11/9/2005 6:52:12 PM
|
|
Hi all i am kind of new to php. I wonder how i can email user ip address and browser type on page load. What i mean is once a page loaded on visitor browser it sends me the administrator of a site an email with ip address of visitor and browser type . I be happy if an expert help me achiving this task.Thanks
|
|
Reply By:
|
anshul
|
Reply Date:
|
11/11/2005 5:48:45 AM
|
Hi,
You should be always happy ;).
There is no page load in PHP. (It's in JavaScript.)
Well PHP is server-side (it executes on remote machine), so put the PHP code on top of your .php page, before any html.
Please read about using these functions on PHP Web site (php.net): mail(), ini_set(). Also read about server-side $_SERVER[] variables.
`~@#\^%&*/\.<.\/-|+|_!:;..=?> Support Indian students' finances http://scholarship.mediasworks.com/
|