• Quick links
    • Unanswered topics
    • Active topics
    • Search
    • The team
  • FAQ
  • Login
  • Register

PHP forum, your PHP coding community

A community in which webmasters can ask for help with topics such as PHP coding , MySQL , IT jobs, web design, IT security.

  • Home Board index php forum :: php coding PHP coding => General
  • Search

How to capture local lan ip in php

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
arvnd86

  • Quote

Mon May 06, 2013 11:55 pm

Hi to all,

How to fetch local lan ip address in php..?
Top

User avatar
sandeep605085
New php-forum User
New php-forum User
Posts: 44
Joined: Tue Feb 26, 2013 6:00 am
Location: Mindfire Solutions
Contact:
Contact sandeep605085
Website

  • Quote

Wed May 08, 2013 10:03 am

Hi,

Check this

<?php
$localLanIp = gethostbyname(trim(`hostname`));
?>

Thanks,
Sandeep Agrawal
Mindfire Solutions.
Top

Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “PHP coding => General”

Jump to
  • php forum :: php coding
  • ↳   PHP coding => General
  • ↳   PHP coding => Images
  • ↳   PHP coding => Mail
  • PHP
  • ↳   PHP General
  • ↳   PHP Scripts
  • ↳   PHP Installation
  • ↳   PHP Jobs
  • ↳   PEAR and PECL
  • ↳   Your Scripts
  • php forum :: Database
  • ↳   mySQL & php coding
  • ↳   phpMyAdmin
  • ↳   MySQL Installation
  • ↳   Other Database Engines
  • php forum :: PHP and MySQL Security
  • ↳   PHP & MySQL Security
  • System Administration
  • ↳   Server installation and configuration
  • ↳   Server security
  • php forum :: HTML
  • ↳   JavaScript
  • ↳   HTML Basics
  • ↳   CSS
  • php forum :: Bar
  • ↳   Free time
  • ↳   News and Announcements

Login  •  Register



ADVERTISEMENT


ADVERTISEMENT


ADVERTISEMENT

  • Home Board index
  • All times are UTC-08:00
  • Delete all board cookies
  • The team
  • Contact us
 

 

Powered by phpBB™ • Design by PlanetStyles
cron