Go Back   PHP-Editors > Programming Help > PHP Programming Help

PHP Programming Help Post any question relating to PHP Programming here and hopefully someone can help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2009-06-06, 10:10 PM
Junior Member
 
Join Date: Jun 2009
Posts: 4
Hansz is on a distinguished road
Default How to detect DHCP/LAN IP ??

I have some problem to detect PC IP, anyone know the code to detect PC - DHCP/LAN IP Address in PHP ?

I know the code : $ip=$_SERVER['REMOTE_ADDR'];

But it's not detect the DHCP/LAN IP (Start --> Run "CMD" --> ipconfig)...

Please help me...

note : Sorry for my Bad English
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 2009-06-28, 09:17 AM
Xnuiem's Avatar
Moderator
 
Join Date: May 2004
Location: DFW, Texas
Posts: 1,205
Xnuiem will become famous soon enough
Default

$_server['server_addr']
__________________
My company's website: XM Tek
My Homepage/Blog
Reply With Quote
  #3 (permalink)  
Old 2009-06-29, 02:06 PM
Junior Member
 
Join Date: Jun 2009
Posts: 4
Hansz is on a distinguished road
Default

Quote:
Originally Posted by Xnuiem View Post
$_server['server_addr']
Thanks for your reply... But, i think you not read my problem...

I know that code is using to detect DNS IP in server and LAN IP in my PC

It's not work if i want to detect LAN IP for my visitor PC...

The code i want is, to detect Visitor LAN IP... I dont know, why PHP not ready this code...

LAN IP and DNS IP is not same...
Reply With Quote
  #4 (permalink)  
Old 2009-07-01, 12:22 AM
Banned
 
Join Date: Mar 2009
Posts: 35
huafei is on a distinguished road
Talking

I like the idea, cool!
Reply With Quote
  #5 (permalink)  
Old 2009-07-01, 10:26 AM
Junior Member
 
Join Date: Jun 2009
Posts: 4
Hansz is on a distinguished road
Default

Someone, please tell Rasmus Lerdorf about this problem...

Why PHP's not ready this code... Seriously, i want to used it for important project...
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

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. The time now is 10:48 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.