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/

Go to topic 36320

Return to index page 438
Return to index page 437
Return to index page 436
Return to index page 435
Return to index page 434
Return to index page 433
Return to index page 432
Return to index page 431
Return to index page 430
Return to index page 429