July 05, 2008, 07:38:26
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Add your links to our directory. Click
here
to add your links.
Home
Forum
Help
Search
Directory
Calendar
Login
Register
News
Add your links to our directory. Click
here
to add your links.
IT Resources
Recover Deleted Files
Php Hosting
Hot Wallpapers
Free Articles
Buy Cheap Ipod
PDF to Doc Converter
Internet Eraser
Linux web hosting
DoFollow Sites
Movie Reviews
Webmaster's Talks !
>
Forum
>
Programming
>
General Coding
>
Can I record an IP address ?
Pages: [
1
]
« previous
next »
Print
Author
Topic:
Can I record an IP address ?
(Read 1049 times)
0 Members and 1 Guest are viewing this topic.
sintex
Jr. Member
Points: 7
Offline
Posts: 96
Can I record an IP address ?
«
on:
June 12, 2006, 12:56:01 »
Is there any way I can record an IP address every time it visits my site? I see some websites what display your ip address when you are accessing specifica pages. Is possible to do a simple program to log this IP address in a file ?
Logged
chris3471
Full Member
Points: 3
Offline
Posts: 187
Re: Can I record an IP address ?
«
Reply #1 on:
June 12, 2006, 13:46:56 »
Use this to get the ip.
$_SERVER['REMOTE_ADDR'];
Logged
SMB Webmaster Forums
TheGodFather
Administrator
Hero Member
Points: 202
Offline
Posts: 2570
Re: Can I record an IP address ?
«
Reply #2 on:
June 12, 2006, 13:49:18 »
What script language do you use on server side ? Php ? if Yes then is quite simple:
Code:
$fd = fopen("visits.log","a");
fwrite($fd,date()." - ".$_SERVER[REMOTE_ADDR]."\n");
fclose($fd);
Regards
Logged
█
Deleted Domains
█
Hostmaster Web Tools
█
Webmaster Web Tools
mtorregiani
Jr. Member
Points: 0
Offline
Posts: 26
Re: Can I record an IP address ?
«
Reply #3 on:
November 08, 2006, 00:09:38 »
If you don't use PHP, is there any other easier alternative?
Logged
http://www.lazyday.us
http://www.fastest-lap.net
TheGodFather
Administrator
Hero Member
Points: 202
Offline
Posts: 2570
Re: Can I record an IP address ?
«
Reply #4 on:
November 08, 2006, 00:19:56 »
Just read the apache log if you have static html ! In rest I think all scripting languages have some variables for http server environment !
Regards
Logged
█
Deleted Domains
█
Hostmaster Web Tools
█
Webmaster Web Tools
cyxic
Jr. Member
Points: 0
Offline
Posts: 22
Re: Can I record an IP address ?
«
Reply #5 on:
November 09, 2006, 05:10:18 »
Its possible in all scripting languages.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Web Design and Graphics
-----------------------------
=> General
=> Web Design Discussion
===> Adobe Photoshop, Corel PhotoPaint or other Image editing software
===> Dreamweaver, FrontPage or other WYSIWYG software
=> Web Design Reviews
=> Design Contest
-----------------------------
Programming
-----------------------------
=> Databases
=> PHP
=> ASP
=> Javascript
=> Java
=> General Coding
===> Perl
===> .NET
-----------------------------
Search Engine
-----------------------------
=> Google
=> Yahoo
=> MSN
=> Other Search Engines
=> Web Directories
===> SMF Directory
-----------------------------
Domain Names
-----------------------------
=> Domain Name Discussion
=> Domain Appraisals
=> Expired Domains
-----------------------------
Server Related
-----------------------------
=> Forum/CMS Related
=> Apache/IIS
=> Security
=> Linux
===> General Questions
===> Installations
===> Desktop & Multimedia
===> System configurations problems
===> Kernel things
-----------------------------
The Webmasters Talks !
-----------------------------
=> General Discussion
===> Fun
=> Tools
===> Link Popularity
===> Google Datacenter Query
===> Google Backlinks Checker
===> Google Page Rank Checker
===> Html Validation
===> Alexa Rank Checker
===> SEO 4 SMF
=====> Showcase
=====> Joomla
=====> Bugs
=====> Features
=> New Member Introductions
=> Suggestions & Feedback
=> News and Announcements
Loading...