arunkumarhg
Dec 21 2004, 12:41 PM
| | Hi,
Am in damm need of tracing the Users IP and City hwre they are from with PHP, Any help please.......
Thanks in Advance Arunkumar.H.G |
Reply
jipman
Dec 21 2004, 03:44 PM
IP is easy if you mean the client that connects to your server has to be logged. $adress = $_SERVER['REMOTE_ADDR']; insert that line and the variable $adress will be the IP you need. But city is not possible i think, because the IP only refers to the company that has registered the subnet ( first 3 digits of you ip). So you can only find out who someones ISP is. And in wich country someone is. All you need to do is a whois to the ip you just got.
Reply
cryptwizard
Dec 21 2004, 08:47 PM
To get a host name (something like xxx.70.233.220.exetel.com.au) run the IP address through gethostbyaddr($ip). Like jipman said the IP address is accessible through $_SERVER['REMOTE_ADDR']. To get their contury, there's an API here: http://sourceforge.net/projects/geoip/I never used it myself, but I've seen it in use on mySQL.com and it works for me. It has APIs for a wide variety of languages. Hope that helps.
Reply
arunkumarhg
Dec 22 2004, 11:22 AM
Thanks for your reply, recently i gone through the http://www.ip2location.com/ there they will display even city also, how it is done. Any links resources please.... Regards Arunkumar.H.G
Reply
Similar Topics
Keywords : user, ip, city, tracing, php, user, ip, city, tracing, php
- Javascript Keyevents ?
keystroke in javascript by which we can restrict the user. (3)
[report] A User
(1) http://www.astahost.com/new-logo-did-astahost-t19690.html Please look at the #4 post, The user is
spamming. Hope I helped with this ....
How To Enable User Login Security On Windows Vista
NOT User Account Control (0) How to enable User Secure Login on Windows Vista You may have worked in a business,
educational or other network that uses Windows to log in. With or without being on a domain, most
business environments "require" you to press the key combination of CTRL + ALT + DELETE prior to the
log on prompt (the username, password and domain box). This is supposed to enhance login security to
verify the authenticity of the login box (so that no other malicious software makes a similar box).
This tutorial will show you how to enable this functionality on Windows XP Home Ed....
How To Change Your Windows User Environment Variables
a step-by-step guideline (5) 1. INTRODUCTION. Most of Microsoft very basic users are satisfied when the Windows installer
installs each new software, automatically putting each file in the right place and making each
Windows registry change. However, some new incoming software environment, mainly the ones from the
open world, let you do some changes manually. For instance, if you install the java development
software on your pc, you have to manually tell windows where the java binaries are. That means, if
you type “javac” in a command shell window, Microsoft Windows has to know that javac.ex....
City Of Heroes Review.
A review of CoH (1) After being away from the game for while I returned to my favourite MMO, City of Heroes (AKA CoH).
CoH is not my forst MMO after having played Everquest well past the point that it was actually fun,
I have also played Dungeons and Dragons Online, World of Warcraft, and tried or Beta tested many
others. Every time I come back to CoH though. I thought I would answer why this is. Tehn I realized
I had a really long post on some of the mechanics in CoH just to explain why it is great. So I
decided to split the post into two. one for the basic game mechanics nad one for the a....
User Account Control
(13) I'm sure most of you know about Windows Vista's User Account Control. I was wondering if
there were any registry settings or anything that I could modify to force the UAC prompt to appear
when doing these tasks: Clicking the Start button Opening any folder Launching any application
Adjusting personalization settings Opening a new page in Internet Explorer (by that I mean typing
in a URL, from Favourites or by clicking a link) Turning off, sleep or restarting the computer
Modifying the Windows Sidebar Opening any file (mp3, document, anything) There's....
Yahoo! Messenger Power User
(2) I just received a very weird message when I logged into Messenger today. It said “Congratulations,
you are a Power User!” The pop-up was in its separate window similar to the annoying Insider and
had a Learn More, Choose Your Icon, and No Thanks button (the Learn More button didn’t work). After
doing a quick Google search
(http://help.yahoo.com/l/us/yahoo/messenger/messenger9/pwrusr/pwrusr-01.html)
(http://messenger.yahoo.com/powerusers) I found that this thing does really exist and wasn’t some ad
pop-up that somehow got past my defenses. Here are a few of the “benef....
How To: Display A Members/user List.
With PHP, Mysql, and HTML. (3) Alright, some of you might want to display your User's or Members on your site. Notes: 1.This
is to fit in with Feelay's register and Log-in scripts you can find in the tutorial section. 2.I
made this to show the members of my site who is a member and what their ID is. First off, we must
set up a connection to our MySQL Database. CODE $con =
mysql_connect("localhost","database_username","database_username_password"); if (!$con) {
die('Could not connect: ' . mysql_error()); } What it does: 1.It is starting a PHP
document. 2.Next it sets....
Mysql And User File_priv
(0) HI, I've hit the grain while trying to import file to mysql database - I need to enable file
permissions of the database user but this seems not possible with most of the hosting providers.
The problem is to set file_priv of the database user to "Y" . This is done in the "user" table of
the maintanance database named "mysql". cPanel doesn't allow this. Via the cPanel you can only
allow privileges on table querries but you cannot grant host file privileges to the database user -
which makes querries like: "LOAD DATA INFILE 'filename' INTO TABLE tablen....
I Really Need Help
Help with making a city! (5) I am currently making a game using MCcodes V2.2 and when its installed etc.. it wouldnt let me make
a city. It kept saying Notice: Undefined index: minlevel in
/www/rack111.com/g/a/n/(mygamename)/htdocs/staff_cities.php on line 18 Notice: Undefined index:
name in /www/rack111.com/g/a/n/(mygamename)/htdocs/staff_cities.php on line 19 Notice: Undefined
index: desc in /www/rack111.com/g/a/n/(mygamename)/htdocs/staff_cities.php on line 20 Please can
someone help me! Thanks ....
How To Create A "user Profile" Page.
No design (easy to add later if you want). (14) Hi! It was a long time ago I created a tutorial, so I've decided to create a new one
/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> This time, I am
going to teach you, how to create a "user profile page". Lets say I am logged in on my account, and
want to view someone else account information (in this case, only his username, but you can add more
things later). Then I'll press on a link, that will take me to his user profile. But before
you can do that, you will have to create a register script, and a login script. If you d....
How To Create/edit/delete Ftp Accounts With Php
Help me to create one php page to create FTP user accounts in Unix Ser (2) Thanks /cool.gif" style="vertical-align:middle" emoid="B)" border="0" alt="cool.gif" /> ....
Bblean
Get windows a new user interface (0) QUOTE bbLean is the lean version of Blackbox for Windows. It tries to keep balance between
features and complexity, to give you some efficient means within a compact shell. bbLean is based
stylistically on the Blackbox window manager for the X Window System by Brad Hughes. Quick Start
First: Extract the zip-package to a folder on your computer, like c:\blackbox. Click on
blackbox.exe to start. Right-click on the desktop background to show the main menu. Later:
Get bsetroot-20b for background images, put it beside blackbox.exe. Get the artwiz ....
Tracing Broadcast Storms
A poorly managed or configured layer 2 switch may affect network laten (1) In some cases, a single layer 2 switching device configured improperly can cause serious
connectivity problems, especially on a large network. Problems of this nature behave similar to
Denial of Service (DoS) attacks but are slightly easier to track. Most intranets serve a central
location where other internal networks are connected. Whether it is a remote off-site location or
only accessible by taking an underground railway, it's usually the best place to start
disconnecting backbones to find out which physical subnet is causing the problem. Broadcast storms
are ge....
Make A Script Run Even If No User Is Online
(6) Hey! Is there any way to make a script run, even if no user is online. Because at the moment, my
scripts run, only when a user is online. And another thing: How can i make the following: (this is
just an example) mysql_query"SELECT maxhp FROM users WHERE username = 'allusers'"; How can I
select all users maxhp, in the same query? Thanks //Feelay....
Gang City
My new game (3) Well i just set up my game. I need some PHP and HTML coders to help set it up. Plus will get admin
position in game so mail me if interested in helping. Send me a personal message (PM) thanks....
Torn City
A very big Text Based Game (9) I have been playing Torn City for over a half a year. But the game is HUGE! theers are around 25
thousand people playing that game. It has alot of stuff to do. visit Torn City Im a player but i
really like it.You can make factions, companies, buy houses,kill people, and buy guns there is a
HUGE varity of guns in that game. its a game were you find new stuff to do every day.. just dont
like waiting lol. but its how it is. Im looking forward to making a game like this!! /smile.gif"
style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />....
Automated Product Suggestion Script
Compare user lists and suggest related items based on pattern matching (2) I recently got an idea for a project and one of the features I wanted the project to have was an
automated suggestion service. If anyone has been to Amazon, it would work much like their
recommended product feature. What I want to do is take several users lists of whatever but for this
example, I'll use web links like from the browser history. I would want to suggest links to a
user based on common links in many other users lists. User A: Amazon, Ebay, Excite, Google, Yahoo,
MySpace, Walmart User B: Amazon, Ebay, Google, Yahoo, You Tube, MySpace, CVS User C: Amazo....
Graphcal User Interfaces In Java
How do you make them? (4) Ok, right now I am currently using eclipse, however I can change to whatever if there is something
else that would be better for this. But I have made a number of java applications, but they all
simply use the command line for doing their user input and output. However, I have been interested
in learning how to program graphical user interfaces in java, and was wondering if somebody could
point me in the right direction, with some easy to understand and follow tutorials. Also, once I
have done that, what about making a java program that can be easily executed? (I know t....
My Summary Of Vista Bugs
User summary (12) Wow /ohmy.gif" style="vertical-align:middle" emoid=":o" border="0" alt="ohmy.gif" /> I can't
believe that Microsoft Vista, even at it's release, has many bugs. Even though the features--
nice start logo, great sidebar, cool effects, nice IE 7, awesome Windows Media Player, improved
Policies, a start search, indexing,(do you want me to name them all) ReadyBoost, new & improved
bootscreen, Microsoft Aero(I think Windows Aero), and many more--are very great, I recently faced
many bugs:(Note that these bugs are in Windows Vista) Some programs I can't access fr....
City By The Night Vector Wallpaper
(7) I like to present my first legit Vector design, after downloading enough vector brushes to keep me
happy I thought I try my luck and see what I could design. I designed it at 1024x768 and it looks
halfway descent as a desktop wallpaper, so questions and comments. ....
Gimp: Good User Bar Creator
(14) Well people on this forum seem to like Photoshop alot i dont know why but here i go with Gimp you
can do many more features and it is freeware at the moment which basically means that you can
download it for free yes you need to install a GTK2 file but they do not use that amount of memory
and being a designer my self for user bars i know the importance of a good creator and i would swear
on anything you will find this program easier and much much more interesting to use please reply and
i dont mind getting in a debate about this Topic as i know i will win /wink.gif" s....
Simple User Validation Script
(5) This tutorial will show you how to create a simple user validation script with PHP. We will need
two files: "protect.php" and "login.php". The protect file is not meant to be viewed by itself. In
order to protect a page, you need to include that file by using PHP code like the following: CODE
include("protect.php"); Keep in mind that this needs to be in between your tags. This bit of
code uses the include function. It is a handy function that reads all the information contained in
one file and temporarily adds it to another. For example, this can be used to cr....
How Can I Make Xp User Autologin ?
I know how to make the Administrator user automatically log in in Wind (6) I would like my system to automatically log the user Administrator at power-up or at system reboot.
And I don't want to remove the Administrator user password. I knew how to do this with Windows
2000 : in the command prompt, type "control userpasswords" and you see the user admin pannel coming
up, you uncheck "user must provide a password", the system asks you the default user passwords and
then you don't need to give the password again at each boot. How do you perform this under
Windows XP ? I would not like to directly edit the registry settings, I would like t....
User Authentication Session Handling Problems
Authorization server variables not staying across pages (14) This is quite a bit of problem I am facing, and I cannot point exactly where I am going wrong. I
have been lurking around here at the Asta Host forums with regard to login and user authentication
scripts and I have got as far as this: - Starting a session - Registering a session variable -
Using the variable to check if the user is authenticated or not. - Authenticating the user through
MySQL database - Logging of the user, by setting the session variable to un-authenticated I have
been able to achive the following things too that I think is not related to this proble....
How To Reset The Server Variable Php_auth_user
(9) Hi, i'm developing a web application which obviously requires a log in/log out script that i
just implementing but i dont know why the log out script dont work fine. The problem is related
with the server variable $_SERVER which remains set even when in the log out script i unset it with
the unset() function. Does someone knows how can i reset or clear the server variable $_SERVER ???
Best regards, ....
Get User Input From Vbscript For Batch Files
Get user input from vbscript (2) Hello, I didn't see a tutorial on this subject so i'll go ahead and do it. Long ago I used
batch file programming a quite a bit. I used vbscript files to get user input for the batch files.
So here is a simple example of using the 'call' command to call for the vbscript file which
should be in the same folder as the .bat file. in the batch file pretty much anywhere you can start
the vbscript, and call another .bat file- using @ to of course not echo the line of code - CODE
@ start /w wscript.exe userin.vbs @ call ~anyname.bat @ del ~anyname.bat....
Laptop Hangs When Loading User (xp)
My laptop is hangin when it is loading (6) When ever i turn my laptop on it hangs after i put in my User password /mad.gif' border='0'
style='vertical-align:middle' alt='mad.gif' /> I have not changed anything.. How can i solve this
problem (Formating now) Bu please tell for for further instructions /smile.gif' border='0'
style='vertical-align:middle' alt='smile.gif' /> /smile.gif' border='0'
style='vertical-align:middle' alt='smile.gif' /> Other words if its happens again... HELP!!!....
Which Distro Of Linux Is Best For A Windows User ?
(42) After years of using Windows, I have decided to "throw off the chains of corporate oppression" and
switch to Linux. My main question is this: which free (key word) distro would be best suited for a
person used to working in Windows, and enjoys gaming?....
Secret Behind Your Nick/User Names
Where did they come from? (128) The origin of my nick is actually a long story that some of you might not even understand. Anyway
here it goes: I'm a Chinese from Hong Kong, and while my parents were in Taiwan, I was born.
They use Chinese there too, but their transcription of my name into English to put on my uh... ID?
that card that signifies my identity... I don't think that it's used in the US. Well, they
called me Szu Chen Lo, but actually sounds like See Ching Law in my language. 9 years later, on a
Friday after a testing week which lets us out of school early, as I discovered the Li....
Looking for user, ip, city, tracing, php, user, ip, city, tracing, php
|
*SIMILAR VIDEOS*
Searching Video's for user, ip, city, tracing, php, user, ip, city, tracing, php
|
advertisement
|
|