Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 14-01-2007, 07:39 PM   #1 (permalink)
CBZ is better than Pulsar
 
panacea_amc's Avatar
 
Join Date: Jul 2006
Location: In FrOnT Of Ur MoNiToR!!
Posts: 394
Wink <<< Any Website Developers here?? i need help!!>>

hello people,
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!!!
panacea_amc is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 14-01-2007, 07:57 PM   #2 (permalink)
eWebGuru
 
ahref's Avatar
 
Join Date: Mar 2006
Location: Dehradun
Posts: 427
Default Re: <<< Any Website Developers here?? i need help!!>>

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.
ahref is offline  
Old 14-01-2007, 08:15 PM   #3 (permalink)
CBZ is better than Pulsar
 
panacea_amc's Avatar
 
Join Date: Jul 2006
Location: In FrOnT Of Ur MoNiToR!!
Posts: 394
Default Re: <<< Any Website Developers here?? i need help!!>>

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
panacea_amc is offline  
Old 14-01-2007, 10:01 PM   #4 (permalink)
eWebGuru
 
ahref's Avatar
 
Join Date: Mar 2006
Location: Dehradun
Posts: 427
Default Re: <<< Any Website Developers here?? i need help!!>>

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.
ahref is offline  
Old 14-01-2007, 10:59 PM   #5 (permalink)
Living to Succeed
 
ajayashish's Avatar
 
Join Date: Dec 2006
Location: Bangalore
Posts: 1,036
Default Re: <<< Any Website Developers here?? i need help!!>>

Quote:
Originally Posted by ahref
Write this in text file, name it ipadd.php
<?php
print $_SERVER["REMOTE_ADDR"];
?>
upload it on your server, then open it in browser.
What this really helps in
__________________
Q6600+Abit IX38QuadGT+Corsair 4gb 800mhz+ Ultra 120 Extreme+ tagan 600wts+CM690
&
Alienware M15 - with Gforce 460 1.5gb + 8gb DDR + i7 1.73ghz
ajayashish is offline  
Old 14-01-2007, 11:41 PM   #6 (permalink)
Alpha Geek
 
Join Date: Feb 2004
Posts: 657
Default Re: <<< Any Website Developers here?? i need help!!>>

will print IP address of the client opening the page.


Btw, you first buy a PHP book and read it for a month .. you wil really love it then.
Ricky is offline  
Old 15-01-2007, 10:31 AM   #7 (permalink)
CBZ is better than Pulsar
 
panacea_amc's Avatar
 
Join Date: Jul 2006
Location: In FrOnT Of Ur MoNiToR!!
Posts: 394
Default Re: <<< Any Website Developers here?? i need help!!>>

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.....
panacea_amc is offline  
Old 15-01-2007, 11:50 AM   #8 (permalink)
eWebGuru
 
ahref's Avatar
 
Join Date: Mar 2006
Location: Dehradun
Posts: 427
Default Re: <<< Any Website Developers here?? i need help!!>>

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.
ahref is offline  
Old 15-01-2007, 01:40 PM   #9 (permalink)
CBZ is better than Pulsar
 
panacea_amc's Avatar
 
Join Date: Jul 2006
Location: In FrOnT Of Ur MoNiToR!!
Posts: 394
Default Re: <<< Any Website Developers here?? i need help!!>>

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!!
panacea_amc is offline  
Old 15-01-2007, 02:02 PM   #10 (permalink)
Rebooting
 
Choto Cheeta's Avatar
 
Join Date: Aug 2004
Location: 220.225.82.33
Posts: 6,200
Default Re: <<< Any Website Developers here?? i need help!!>>

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
Choto Cheeta is offline  
Old 15-01-2007, 02:05 PM   #11 (permalink)
Living to Succeed
 
ajayashish's Avatar
 
Join Date: Dec 2006
Location: Bangalore
Posts: 1,036
Default Re: <<< Any Website Developers here?? i need help!!>>

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
ajayashish is offline  
Old 15-01-2007, 02:35 PM   #12 (permalink)
Broken In
 
anilmail17's Avatar
 
Join Date: Aug 2004
Location: 127.0.0.1
Posts: 149
Default Re: <<< Any Website Developers here?? i need help!!>>

PHP Code:
<?php 
$fp
=fopen("ipstat.txt","a+");
$fwrite($fp,date('Y-m-d H:i:s').$_SERVER["REMOTE_ADDR"]."\n");
fclose($fp);
?>
then read the ipstat.txt from your control panel or web browser
__________________
visit my blog
www.anilsoni.wordpress.com
anilmail17 is offline  
Old 15-01-2007, 02:38 PM   #13 (permalink)
Living to Succeed
 
ajayashish's Avatar
 
Join Date: Dec 2006
Location: Bangalore
Posts: 1,036
Default Re: <<< Any Website Developers here?? i need help!!>>

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
ajayashish is offline  
Old 15-01-2007, 02:56 PM   #14 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default Re: <<< Any Website Developers here?? i need help!!>>

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
desertwind is offline  
Old 15-01-2007, 03:27 PM   #15 (permalink)
Living to Succeed
 
ajayashish's Avatar
 
Join Date: Dec 2006
Location: Bangalore
Posts: 1,036
Default Re: <<< Any Website Developers here?? i need help!!>>

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
ajayashish is offline  
Old 15-01-2007, 04:04 PM   #16 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default Re: <<< Any Website Developers here?? i need help!!>>

of course you have.

Code:
<?php

$fp=fopen("ipstat.txt", "r");

while ( $line = fgets($fp, 1000) ) {
print $line;
}

fclose($fp);

?>
save this file as stats.php and open in your browser.
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness

Last edited by desertwind; 15-01-2007 at 06:35 PM.
desertwind is offline  
Old 15-01-2007, 04:23 PM   #17 (permalink)
eWebGuru
 
ahref's Avatar
 
Join Date: Mar 2006
Location: Dehradun
Posts: 427
Default Re: <<< Any Website Developers here?? i need help!!>>

Great, complete program has been developed.
__________________
Windows and linux hosting at http://www.ewebguru.com
Get $50 per blog post PM me for details.
ahref is offline  
Old 15-01-2007, 06:07 PM   #18 (permalink)
CBZ is better than Pulsar
 
panacea_amc's Avatar
 
Join Date: Jul 2006
Location: In FrOnT Of Ur MoNiToR!!
Posts: 394
Default Re: <<< Any Website Developers here?? i need help!!>>

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.
panacea_amc is offline  
Old 15-01-2007, 06:30 PM   #19 (permalink)
In Pursuit of "Happyness"
 
kalpik's Avatar
 
Join Date: May 2005
Location: New Delhi
Posts: 3,404
Default Re: <<< Any Website Developers here?? i need help!!>>

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.
kalpik is online now  
Old 15-01-2007, 06:30 PM   #20 (permalink)
Wise Old Owl
 
desertwind's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
Default Re: <<< Any Website Developers here?? i need help!!>>

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);
?>
3. Create a new page stats.php and insert the following after the <body> tag
Code:
<?php

$fp=fopen("ipstat.txt", "r");

while ( $line = fgets($fp, 1000) ) {
print $line;
}

fclose($fp);

?>
4. Open www.yoursite.com/stats.php for the status
5. Voila!

Pretty simple isn't it ?
__________________
Sometime you'll think you understand everything

...Then you'll regain consciousness
desertwind is offline  
Old 15-01-2007, 06:53 PM   #21 (permalink)
ax3
Cool as a CUCUMBAR ! ! !
 
ax3's Avatar
 
Join Date: Dec 2003
Posts: 5,002
Default Re: <<< Any Website Developers here?? i need help!!>>

thanx 4 this info ........ php is indeed great ......... any good book ?
ax3 is offline  
Old 16-01-2007, 01:00 AM   #22 (permalink)
CBZ is better than Pulsar
 
panacea_amc's Avatar
 
Join Date: Jul 2006
Location: In FrOnT Of Ur MoNiToR!!
Posts: 394
Default Re: <<< Any Website Developers here?? i need help!!>>

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
panacea_amc is offline  
Old 17-01-2007, 03:29 PM   #23 (permalink)
Alpha Geek
 
Join Date: Feb 2004
Posts: 657
Default Re: <<< Any Website Developers here?? i need help!!>>

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.
Ricky is offline  
Old 17-01-2007, 08:05 PM   #24 (permalink)
Tech'ing life seriously!!
 
sude's Avatar
 
Join Date: Sep 2005
Location: Tech City - Bengaluru
Posts: 394
Default Re: <<< Any Website Developers here?? i need help!!>>

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
sude is offline  
Old 17-01-2007, 09:55 PM   #25 (permalink)
CBZ is better than Pulsar
 
panacea_amc's Avatar
 
Join Date: Jul 2006
Location: In FrOnT Of Ur MoNiToR!!
Posts: 394
Default Re: <<< Any Website Developers here?? i need help!!>>

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
panacea_amc is offline  
Old 18-01-2007, 12:15 PM   #26 (permalink)
Human Spambot
 
tuxfan's Avatar
 
Join Date: Feb 2004
Location: Mumbai
Posts: 2,653
Default Re: <<< Any Website Developers here?? i need help!!>>

Quote:
Originally Posted by ax3
thanx 4 this info ........ php is indeed great ......... any good book ?
Plenty of them. But you will surely find e-books Search for them is all I can say openly

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 ::
tuxfan is offline  
Old 06-10-2008, 06:14 PM   #27 (permalink)
Human Spambot
 
toofan's Avatar
 
Join Date: May 2008
Location: Haldwani(Nainital)
Posts: 2,117
Default Re: <<< Any Website Developers here?? i need help!!>>

Good advance PHP books really needed. Please can anyone Post the names of Best books on PHP.
toofan is offline  
Old 06-10-2008, 06:18 PM   #28 (permalink)
Excessive happiness
 
furious_gamer's Avatar
 
Join Date: Jun 2008
Location: Bangalore
Posts: 2,907
Default Re: <<< Any Website Developers here?? i need help!!>>

Quote:
Originally Posted by toofan_nainital View Post
Good advance PHP books really needed. Please can anyone Post the names of Best books on PHP.
What r u doin in old thread... Making digit forum organised and uncluttered?
__________________
My First Android phone : Samsung Galaxy SL i9003 - Rooted & Gingerbread XXKPQ
Addicted to Game Dev & Grand Prix Story
furious_gamer is online now  
Old 06-10-2008, 06:21 PM   #29 (permalink)
God of Mistakes...
 
Garbage's Avatar
 
Join Date: Dec 2005
Location: Pune, Maharashtra
Posts: 1,905
Default Re: <<< Any Website Developers here?? i need help!!>>

lol... He bumped a year old thread...
__________________
Registered Linux User #468778
----------------------------------
http://twitter.com/_Garbage_
Garbage is offline  
Old 06-10-2008, 06:44 PM   #30 (permalink)
Wahahaha~!
 
Faun's Avatar
 
Join Date: Dec 2006
Location: Pune/there
Posts: 7,109
Default Re: <<< Any Website Developers here?? i need help!!>>

^^lol you are third
__________________
Steam/Flickr: psygeist
Spoiler:
Asus Z68 V-Pro|i5 2500k|TRUE Black|Ripjaws X+Corsair Vengeance|U2311H|N560GTX|D7000|XONAR STX|RE272|RE0|CC51|XE200PRO Walnut| TD II V2| Ultraphile|N5800

Mono
Faun is online now  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +5.5. The time now is 03:18 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2