Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 10-09-2004, 01:19 AM   #1 (permalink)
 
Super Techie

Join Date: Aug 2004

Posts: 277

real_in

Send a message via Yahoo to real_in
Post Visitors IP address

hey guys i need your serious help, actually i jus wanted to know, that if i can get an IP address of the visitors visiting my site on geocities.. i guess that is truly possible if i have my own webspace and domain, but i thot if u guys have any idea, which site provides this facility.. i mean, other than geocities.. if there is any site which can allow me to build a homepage and would lemme know the IPs of the vsitors.. can u help me, no?



regards to all
__________________
Realin Wuz here ...

real_in is offline  
Old 10-09-2004, 02:13 AM   #2 (permalink)
 
Monster Techie

Join Date: May 2004

Location: Tucson, AZ, USA

Posts: 1,183

Vormund

Send a message via AIM to Vormund Send a message via MSN to Vormund Send a message via Yahoo to Vormund
Default

You can get it with almost any web server...
PHP: echo $REMOTE_ADDR;

here's a javascript that you'd use on Geocities, from "javascript source (googled)":

<SCRIPT LANGUAGE="JavaScript">
// Depending on your server set-up,
// you may need to use the ".shtml"
// extension [instead of the "html"
// or "htm"] as the script uses Server
// Side Includes. To display in the
// title bar, exclude the
//"<title></title>" code from the page.

// This part gets the IP
var ip = '';

// This part is for an alert box
alert("Your IP address is "+ip);

// This part is for the status bar
window.defaultStatus = "Your IP address is "+ip;

// This part is for the title bar
document.write("<title>Your IP address is "+ip+"</title>");
// End -->
</script>

but yeah, definetly possible
__________________
Vormund is offline  
Old 10-09-2004, 04:06 AM   #3 (permalink)
 
Super Techie

Join Date: Aug 2004

Posts: 277

real_in

Send a message via Yahoo to real_in
Default

I know i may now be reacting as a kid, but really i am a novice, and i really donn know how to start the shtml thing, like jus like we do in <html></html> or there is something else, also when i tried saving a file in .shtml format, geocities, jus din allow me to, cause it accepts only .htm or .html format..

Also lemme know where i have to put this code in , in body or anywhere in the script, sorry if i am irritating, but i really wanna learn and what if i want the IP address to get stored some where instead of popping up the windows, like mailed me or something like that?

what do i need for that, please help me

Regards

__________________
Realin Wuz here ...

real_in is offline  
Old 10-09-2004, 04:09 AM   #4 (permalink)
 
Super Techie

Join Date: Aug 2004

Posts: 277

real_in

Send a message via Yahoo to real_in
Default

Hey bro, i tried putting this in HTML codes, ya the correct IP pops, up but please O please jus help me a bit, lemme know what if i want it not to pop up, but i secreatly get it
please help me!!
__________________
Realin Wuz here ...

real_in is offline  
Old 10-09-2004, 06:12 AM   #5 (permalink)
 
Monster Techie

Join Date: May 2004

Location: Tucson, AZ, USA

Posts: 1,183

Vormund

Send a message via AIM to Vormund Send a message via MSN to Vormund Send a message via Yahoo to Vormund
Default

Hmm, in that case...well, I'm not all too sure. HTML is static information which is displayed directly on the client's side, as is JavaScript (client-side)...to be able to send it to yourself in an email would require a mail server, (well, I've never done it with anything but PHP and a server with mail included), but Geocities doesn't...

If you had a friend with a PHP-enabled server, you could have them host a simple script for you, that would do that... I'm not entirely sure of all the ways to do this, as I never really got into Javascript that much...

One way (there are surely others, maybe easier too?) is...
just have a small popup window that goes to a file hosted by a friend,
script.php
<?php
$emailto="youremail@address.net";
$subject="the subject of the email";
$ip=$REMOTE_ADDR;
mail($emailto, $subject, $ip ?>

and then use javascript to close it. There are all sorts of scripts to hide the window in the background (and it'd be so quick (generally) that most would not notice). But doing it with simple HTML/Javascript is not possible... :-/
__________________
Vormund is offline  
Old 10-09-2004, 06:28 AM   #6 (permalink)
 
Super Techie

Join Date: Aug 2004

Posts: 277

real_in

Send a message via Yahoo to real_in
Default

Ummmm.. it seems to be a tough task then.. all i wanted to just note down a simple IP who visits my site.. well search if u can gimmie a simple script, i would see if i find a nice mate who can lend me small space..

regards

__________________
Realin Wuz here ...

real_in is offline  
Old 10-09-2004, 06:30 AM   #7 (permalink)
 
Super Techie

Join Date: Aug 2004

Posts: 277

real_in

Send a message via Yahoo to real_in
Default

Also there is one more querry, as u seem to have a gr8 knoweldge, so i must ask you,.. well brother, how do i put a .swf file in html page, or the projector made in flash, how do i put that?? Do lemme know,

Also Lemme know, if i make a java applet, then where i need to put the class files, if i upload it to geocities..

Regards

__________________
Realin Wuz here ...

real_in is offline  
Old 10-09-2004, 07:26 AM   #8 (permalink)
 
Monster Techie

Join Date: May 2004

Location: Tucson, AZ, USA

Posts: 1,183

Vormund

Send a message via AIM to Vormund Send a message via MSN to Vormund Send a message via Yahoo to Vormund
Default

For a java applet...put the files where you referenced them...generally in the same directory, or something like \appfiles

For a .swf file (Flash), you'd use this:

<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="550" height="250">
<param name="movie" value="move.swf">
<param name="quality" value="high">
<embed src="movie.src" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="250"></embed>
</object>

changing the name "movie.swf" (in two spots), and the height/width (in two spots as well).

As for the IP stuff being tough--yeah, and I have limited knowledge with that stuff. I went to Google again, and found this (didn't try it), but they claim to have IP tracking (free):
http://www.wundercounter.com/counter...ook/up/number/

If you want to use the PHP method I mentioned (I'm sure there are FAR easier ways, I jus' can't think of them ATM!)...can do that tommorw..err, later today (after I wake up!). Been too long since I've used java where I actually had to know some. Heck, who knows, maybe someone smarter than me will tell a much easier way too

The PHP part is simple, it's just the javascript I'm a little rusty on So I'll get back to you if someone doesn't first.
__________________
Vormund is offline  
Old 10-09-2004, 11:50 AM   #9 (permalink)
 
Super Techie

Join Date: Jun 2004

Posts: 312

sippin codeine

Send a message via Yahoo to sippin codeine
Default

lose the gayocities account and get a host that supports php, when you get that setup post back here.
http://www.tripod.lycos.co.uk/
__________________
**[System specs]**

Delphi Enterprise 6 - 7
VB 6.0 - 2005 EE
sippin codeine is offline  
Old 10-09-2004, 02:16 PM   #10 (permalink)
 
Super Techie

Join Date: Aug 2004

Posts: 277

real_in

Send a message via Yahoo to real_in
Default

well i guess or i am sure sippin hit exactly the head of the nail..
i have joined tripod.lycos.com and they are giving me ftp uploader, sql database and php support, so now Mr. Xula rest all is up to you, i guess we can use that sql thing and querry with it to store that Ip address, can't we???

regards

__________________
Realin Wuz here ...

real_in is offline  
 
Closed Thread

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