Small Call Back Script Need For Software


I am looking for a small script which can used as a call back script meaning, I should know where my script is running like, IP Address and domain name.

Is there anyway anyone can please write me a small script. Also please suggest how should I know that where my script is running .

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This can't be done with PHP because your script is running on your server...

If you want to know who browsing your page, then you need some client side scripting
(not enough to query the browser IP on server side because might visitor is browsing through proxy...)
to do a quick and dirty answer


this will show you alot of data about the current page and its location and of yourself
YOUR ip address etc
all you need to do is save the information you would like to see as an administrator in a file or database
e.g. at the top of each page you add a new row in a database table called 'visits'

id - integer(11), autonumber
date - integer(11)
ip - varchar(50)
host - varchar(200)

in the php page query your db
insert into visits(date, ip,host) values (time(),$_SERVER['REMOTE_ADDR'],$_SERVER['REMOTE_HOST'])

each user that visits a php page with this code in will generate a record in your visits table, so you can see who visits your pages and when

it is advisable to auto-clean the table as it will generate alot of record fairly quicly.
so it might be a good idea to do a delete from table where date < e.g. a week ago each pagevisit

you can create the necessary code-number for the date 'a week ago' using the mkdate() function of php

for a full list of values in the $_SERVER variable:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup topic area:
   Accept wasco's comment as answer

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

EE Cleanup Volunteer
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.