/    Sign up×
Community /Pin to ProfileBookmark

How to email IP and browser type on page load

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

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@SheldonNov 10.2005 — look up [url=http://nz2.php.net/getenv]getenv[/url] for the ip and [url=http://nz2.php.net/mail]mail[/url] to find the functions, have a got and post it back here if you cant get it to go.
×

Success!

Help @method spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...