| Forum |
|
|||||||
| Programming The destination for developers - C, C++, Java, Python and the lot |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
CBZ is better than Pulsar
Join Date: Jul 2006
Location: In FrOnT Of Ur MoNiToR!!
Posts: 394
|
i am a newbie to this website buisness. i am setting up a website for my personal use. its = http://panacea.3-hosting.net my purpose is ONLY to tack the I.P. address of the visitors to my website. si there any specific software for this purpose? in my site, i have da following folders and files.: 1.sns_collector = folder 2. images = folder 3 index.html = file.... please help me how to proceed?? thanx!!! |
|
|
| Advertisements. Register and be a member of the community to get rid of them. | |
|
Advertisement
|
|
|
|
#2 (permalink) |
|
eWebGuru
Join Date: Mar 2006
Location: Dehradun
Posts: 427
|
tracking ip address is one line php code, do your server support php?
__________________
Windows and linux hosting at http://www.ewebguru.com Get $50 per blog post PM me for details. |
|
|
|
|
#3 (permalink) |
|
CBZ is better than Pulsar
Join Date: Jul 2006
Location: In FrOnT Of Ur MoNiToR!!
Posts: 394
|
ya....it supports php..but i m a complete newbie nad dont know anything abt writing code.....plz kindly tell me where to write code.....and then how can i know the ip address....
thnx |
|
|
|
|
#4 (permalink) |
|
eWebGuru
Join Date: Mar 2006
Location: Dehradun
Posts: 427
|
Write this in text file, name it ipadd.php
<?php print $_SERVER["REMOTE_ADDR"]; ?> upload it on your server, then open it in browser.
__________________
Windows and linux hosting at http://www.ewebguru.com Get $50 per blog post PM me for details. |
|
|
|
|
#5 (permalink) | |
|
Living to Succeed
Join Date: Dec 2006
Location: Bangalore
Posts: 1,036
|
Quote:
__________________
Q6600+Abit IX38QuadGT+Corsair 4gb 800mhz+ Ultra 120 Extreme+ tagan 600wts+CM690 & Alienware M15 - with Gforce 460 1.5gb + 8gb DDR + i7 1.73ghz |
|
|
|
|
|
#7 (permalink) |
|
CBZ is better than Pulsar
Join Date: Jul 2006
Location: In FrOnT Of Ur MoNiToR!!
Posts: 394
|
Thank u Ahref for the code......the code displayed the i.p. address of the visitors to my site........now if i want to know the ip addresses of those visitors, how is that possible?....does this data get stored in my site(server) or somewhere else?????
thanx agagin..... |
|
|
|
|
#8 (permalink) |
|
eWebGuru
Join Date: Mar 2006
Location: Dehradun
Posts: 427
|
You have to store the data, through script. You can store it table or text file.
__________________
Windows and linux hosting at http://www.ewebguru.com Get $50 per blog post PM me for details. |
|
|
|
|
#9 (permalink) |
|
CBZ is better than Pulsar
Join Date: Jul 2006
Location: In FrOnT Of Ur MoNiToR!!
Posts: 394
|
thanks Ahref again, but can u kindly mention the steps of storing the data thru scripting or as a text file...???
i believe thnx will not b enuf for u . thnx again!! |
|
|
|
|
#10 (permalink) |
|
Rebooting
Join Date: Aug 2004
Location: 220.225.82.33
Posts: 6,200
|
well there are 3rd party techniques to get that data,
one is, http://www.statcounter.com there it will give u a code which u have to place at ur pages, that code may be invisible or visible as a counter of ur page views, after u place the code in ur site u can get Stats from the stat counter control panel... or many hosting comes with web stat software such as webziller... look for a Stats in ur hosting panel... what software u r using ?? cPanel ??
__________________
rebooting ChotoCheeta.com |
|
|
|
|
#11 (permalink) |
|
Living to Succeed
Join Date: Dec 2006
Location: Bangalore
Posts: 1,036
|
statcounter is a better option
__________________
Q6600+Abit IX38QuadGT+Corsair 4gb 800mhz+ Ultra 120 Extreme+ tagan 600wts+CM690 & Alienware M15 - with Gforce 460 1.5gb + 8gb DDR + i7 1.73ghz |
|
|
|
|
#12 (permalink) |
|
Broken In
Join Date: Aug 2004
Location: 127.0.0.1
Posts: 149
|
PHP Code:
__________________
visit my blog www.anilsoni.wordpress.com |
|
|
|
|
#13 (permalink) |
|
Living to Succeed
Join Date: Dec 2006
Location: Bangalore
Posts: 1,036
|
where to write this code
__________________
Q6600+Abit IX38QuadGT+Corsair 4gb 800mhz+ Ultra 120 Extreme+ tagan 600wts+CM690 & Alienware M15 - with Gforce 460 1.5gb + 8gb DDR + i7 1.73ghz |
|
|
|
|
#14 (permalink) |
|
Wise Old Owl
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
|
rename your index.html as index.php
then write this code inside the <body></body> tag.
__________________
Sometime you'll think you understand everything ...Then you'll regain consciousness |
|
|
|
|
#15 (permalink) |
|
Living to Succeed
Join Date: Dec 2006
Location: Bangalore
Posts: 1,036
|
can we have any alternate to see without going in control panel and seeing the TXT
like echoing the txt file on a html page
__________________
Q6600+Abit IX38QuadGT+Corsair 4gb 800mhz+ Ultra 120 Extreme+ tagan 600wts+CM690 & Alienware M15 - with Gforce 460 1.5gb + 8gb DDR + i7 1.73ghz |
|
|
|
|
#16 (permalink) |
|
Wise Old Owl
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
|
of course you have.
Code:
<?php
$fp=fopen("ipstat.txt", "r");
while ( $line = fgets($fp, 1000) ) {
print $line;
}
fclose($fp);
?>
__________________
Sometime you'll think you understand everything ...Then you'll regain consciousness Last edited by desertwind; 15-01-2007 at 06:35 PM. |
|
|
|
|
#17 (permalink) |
|
eWebGuru
Join Date: Mar 2006
Location: Dehradun
Posts: 427
|
Great, complete program has been developed.
__________________
Windows and linux hosting at http://www.ewebguru.com Get $50 per blog post PM me for details. |
|
|
|
|
#18 (permalink) |
|
CBZ is better than Pulsar
Join Date: Jul 2006
Location: In FrOnT Of Ur MoNiToR!!
Posts: 394
|
guys!!! please wait....u must be some gurus in programming...but i a newbie
where is the "ipstat.txt" file??? wht is the control panel??? i am not unerstanding these things>>>> i i want to know who r visiting my site ONLINE.....please explain the steps elaboratley....thanks buddys!! Last edited by panacea_amc; 15-01-2007 at 06:17 PM. |
|
|
|
|
#19 (permalink) |
|
In Pursuit of "Happyness"
Join Date: May 2005
Location: New Delhi
Posts: 3,404
|
ipstat.txt file will be created automatically.. And forget about control panel.. just type http://panacea.3-hosting.net/ipstat.txt to view the IPs.
|
|
|
|
|
#20 (permalink) |
|
Wise Old Owl
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
|
Well, your question is answered already in this thread. For your sake repeating again.
1. Rename your index.html (or index.htm) to index.php 2. Put the following code just after the <body> tag Code:
<?php
$fp=fopen("ipstat.txt","a+");
$fwrite($fp,date('Y-m-d H:i:s').$_SERVER["REMOTE_ADDR"]."\n");
fclose($fp);
?>
Code:
<?php
$fp=fopen("ipstat.txt", "r");
while ( $line = fgets($fp, 1000) ) {
print $line;
}
fclose($fp);
?>
5. Voila! Pretty simple isn't it ?
__________________
Sometime you'll think you understand everything ...Then you'll regain consciousness |
|
|
|
|
#22 (permalink) |
|
CBZ is better than Pulsar
Join Date: Jul 2006
Location: In FrOnT Of Ur MoNiToR!!
Posts: 394
|
thank you people for bearing with me, especially Desertwind: thanx buddy, ur too good!!
thanx all n keep this forum rocking!! __________ some more querries::: i managed to get the I.P. address of my fren live chatting. he was from barelli..but when i used his i.p.to find out the location (city)...it showed bangalore....i used http://www.geobytes.com/IpLocator.htm?GetLocation for findin the location.....is there any way of 100% effective correct reporting of the location concerned? thnx again Last edited by panacea_amc; 16-01-2007 at 01:00 AM. Reason: Automerged Doublepost |
|
|
|
|
#23 (permalink) |
|
Alpha Geek
Join Date: Feb 2004
Posts: 657
|
No , there is no 100% way to get accurate information untill the user is having static IP .
If your free hosting provide you cPanel or any other panel then you shld have some stats program already installed under it. |
|
|
|
|
#24 (permalink) |
|
Tech'ing life seriously!!
Join Date: Sep 2005
Location: Tech City - Bengaluru
Posts: 394
|
i am talking something out of the post query... i am sorry
dear panacea ur site seems interesting but why are u using 3-hosting... that to with ads... move to 110mb.com no ads adn fully professional features... go to www.110mb.com for more -SUDE
__________________
Hi! Any1 pursuing PG from SCDL (Symbiosis Distnce Learnin) frm Bangalore? If yes PM me. We cn form a study group (on weekends). Ths wil b mutually beneficial! Rgds. SUDE | www.lifeethiquette.co.nr |
|
|
|
|
#25 (permalink) |
|
CBZ is better than Pulsar
Join Date: Jul 2006
Location: In FrOnT Of Ur MoNiToR!!
Posts: 394
|
hey sude, u said u found my site interesting!!!
I had only ONE thing in my site and that was...... Well....m i rite in guessing??? Ok. I will check out 110mb.com |
|
|
|
|
#26 (permalink) | |
|
Human Spambot
Join Date: Feb 2004
Location: Mumbai
Posts: 2,653
|
Quote:
But also get hold of a copy of php manual from www.php.net. If you know C/C++/Java then you will feel at home in PHP. The basic syntax, loops, etc. is same.
__________________
:: Free hosting and free domain names available in special cases. Conditions apply :: |
|
|
|
|
|
#28 (permalink) | |
|
Excessive happiness
Join Date: Jun 2008
Location: Bangalore
Posts: 2,907
|
Quote:
__________________
My First Android phone : Samsung Galaxy SL i9003 - Rooted & Gingerbread XXKPQ Addicted to Game Dev & Grand Prix Story |
|
|
|
|
|
#29 (permalink) |
|
God of Mistakes...
Join Date: Dec 2005
Location: Pune, Maharashtra
Posts: 1,905
|
lol... He bumped a year old thread...
__________________
Registered Linux User #468778 ---------------------------------- http://twitter.com/_Garbage_ |
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|