New Zealand
Go Back  

New Zealand Boards

> General Discussion > The Lounge
Reply
  #1 (permalink)  
Old 14-Dec-2004, 12:05 PM
Teelo's Avatar
Teelo is offline
 NZB Fan
 Karma +/- Power: 0
 Karma: Teelo is an unknown quantity at this point (0)
  6 month star 12 month star 18 month star
  Send a message via AIM to Teelo Send a message via MSN to Teelo
 
 Local Time: 07:46 PM
 Local Date: 24-Jul-2008
 Join Date: Nov 2004
 Location: Dunedin, NZ
 Age: 19
 Posts: 340
Cool PHP problem...

Can someone tell me how to get the users IP in php?

Like when someone registers to my site, how the fuck can I get their IP?
Ive looked through that php manual but I dont see shit there. It must be possible when forums log IP's and stuff...

Teelo's Signature:
~Teelo
Reply With Quote
  #2 (permalink)  
Old 14-Dec-2004, 12:23 PM in reply to Teelo's post "PHP problem..."
nih
nih's Avatar
nih is offline
 Fuzzy Bunny Slipper
 Karma +/- Power: 54
 Karma: nih has a spectacular aura aboutnih has a spectacular aura about (169)
  6 month star 12 month star 18 month star
 
 Local Time: 07:46 PM
 Local Date: 24-Jul-2008
 Join Date: Nov 2004
 Location: Auckland
 Posts: 711
 Blog Entries: 6
Default re: PHP problem...

$_SERVER['REMOTE_ADDR']

The forum removed my caps. That should all be upper-case.
Reply With Quote
  #3 (permalink)  
Old 14-Dec-2004, 12:40 PM in reply to nih's post starting "$_SERVER['REMOTE_ADDR'] The forum..."
Teelo's Avatar
Teelo is offline
 NZB Fan
 Karma +/- Power: 0
 Karma: Teelo is an unknown quantity at this point (0)
  6 month star 12 month star 18 month star
  Send a message via AIM to Teelo Send a message via MSN to Teelo
 
 Local Time: 07:46 PM
 Local Date: 24-Jul-2008
 Join Date: Nov 2004
 Location: Dunedin, NZ
 Age: 19
 Posts: 340
Angry re: PHP problem...

Quote:
Originally Posted by nih
$_SERVER['REMOTE_ADDR']

The forum removed my caps. That should all be upper-case.


The IP address thats getting stored is 'unknown'...



wtf?????


Edit: Okay, my IP seems to be showing as 'unknown' but not for anyone else...

Any idea why this is?

Teelo's Signature:
~Teelo
Reply With Quote
  #4 (permalink)  
Old 14-Dec-2004, 01:09 PM in reply to Teelo's post starting ":confused: The IP address thats..."
nih
nih's Avatar
nih is offline
 Fuzzy Bunny Slipper
 Karma +/- Power: 54
 Karma: nih has a spectacular aura aboutnih has a spectacular aura about (169)
  6 month star 12 month star 18 month star
 
 Local Time: 07:46 PM
 Local Date: 24-Jul-2008
 Join Date: Nov 2004
 Location: Auckland
 Posts: 711
 Blog Entries: 6
Default re: PHP problem...

You must be elite or something. Are you running the script locally?
Reply With Quote
  #5 (permalink)  
Old 14-Dec-2004, 01:36 PM in reply to nih's post starting "You must be elite or something. Are you..."
Teelo's Avatar
Teelo is offline
 NZB Fan
 Karma +/- Power: 0
 Karma: Teelo is an unknown quantity at this point (0)
  6 month star 12 month star 18 month star
  Send a message via AIM to Teelo Send a message via MSN to Teelo
 
 Local Time: 07:46 PM
 Local Date: 24-Jul-2008
 Join Date: Nov 2004
 Location: Dunedin, NZ
 Age: 19
 Posts: 340
Default re: PHP problem...

Quote:
Originally Posted by nih
You must be elite or something. Are you running the script locally?
The script is being hosted on lycos.it
and I'm access it via my browser for testing...

Teelo's Signature:
~Teelo
Reply With Quote
  #6 (permalink)  
Old 14-Dec-2004, 01:41 PM in reply to Teelo's post starting "The script is being hosted on lycos.it..."
nih
nih's Avatar
nih is offline
 Fuzzy Bunny Slipper
 Karma +/- Power: 54
 Karma: nih has a spectacular aura aboutnih has a spectacular aura about (169)
  6 month star 12 month star 18 month star
 
 Local Time: 07:46 PM
 Local Date: 24-Jul-2008
 Join Date: Nov 2004
 Location: Auckland
 Posts: 711
 Blog Entries: 6
Default re: PHP problem...

It may be that they disable certain commands, although I don't see why they'd disable one part of REMOTE_ADDR for the browser. What's the address of the page?
Reply With Quote
  #7 (permalink)  
Old 14-Dec-2004, 01:56 PM in reply to nih's post starting "It may be that they disable certain..."
Teelo's Avatar
Teelo is offline
 NZB Fan
 Karma +/- Power: 0
 Karma: Teelo is an unknown quantity at this point (0)
  6 month star 12 month star 18 month star
  Send a message via AIM to Teelo Send a message via MSN to Teelo
 
 Local Time: 07:46 PM
 Local Date: 24-Jul-2008
 Join Date: Nov 2004
 Location: Dunedin, NZ
 Age: 19
 Posts: 340
Default re: PHP problem...

http://utenti.lycos.it/teelo12000/

although i have the admin stuff for viewing the IP's locked away

Edit: Uh I give up for today. This shit is givin me a headache. I'll continue tomorrow.

Teelo's Signature:
~Teelo
Reply With Quote
  #8 (permalink)  
Old 15-Dec-2004, 06:58 AM in reply to Teelo's post starting "http://utenti.lycos.it/teelo12000/ ..."
nih
nih's Avatar
nih is offline
 Fuzzy Bunny Slipper
 Karma +/- Power: 54
 Karma: nih has a spectacular aura aboutnih has a spectacular aura about (169)
  6 month star 12 month star 18 month star
 
 Local Time: 07:46 PM
 Local Date: 24-Jul-2008
 Join Date: Nov 2004
 Location: Auckland
 Posts: 711
 Blog Entries: 6
Default re: PHP problem...

Get it to echo the IP address it's collecting in html comments at the end of the document or something. I'd be curious to see if it's really just doing it for you or what.
Reply With Quote
 
Login or Register to Reply
You are currently viewing our boards as a Guest. Please login or register for free to reply to this topic.
Reply

Tags
php

Topic 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

Similar Topics
Topic Topic Starter Forum Replies Last Post
Battery Problem Scrubs Launch Cupid News Views and Issues 0 15-Jul-2004 04:56 PM
Ear my problem KoLdArKnEsS Ask Aunt Sparklechick 6 16-May-2004 01:09 PM

Geotarget
NZB is hosted on a Dual Opteron Server provided by Sparkle Hosting
All times are GMT +10. The time now is 05:46 PM.
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC7
All content ©2003 - 2008 nzboards.com - Kiwi (New Zealand) Messageboards

Our Partners

Sitemap

< New Zealand News - Arcade - New Zealand Map - Helpdesk - New Zealand Photo Gallery - NZBMail - Sitemap >