메뉴

PHP CLI mode 에서 로컬IP 가져오기

2012년 8월 8일 - PHP

여러가지 방법들이 존재하지만 CentOS 의 경우

저는 아래의 방법을 주로 사용합니다.

<?
       exec("/sbin/ifconfig eth0 | fgrep -i inet | cut -d : -f 2 | cut -d \" \" -f 1", $tmp);
       $localIP = $tmp[0];
?>

Tags: , , , ,

PHP CLI mode 에서 로컬IP 가져오기”에 대한 1개의 생각

high pr backlinks

hi dee hi taesachi.com blogger discovered your blog via yahoo but it was hard to find and I see you could have more visitors because there are not so many comments yet. I have discovered site which offer to dramatically increase traffic to your website http://xrumer-services.net they claim they managed to get close to 4000 visitors/day using their services you could also get lot more targeted traffic from search engines as you have now. I used their services and got significantly more visitors to my website. Hope this helps 🙂 They offer best services to increase website traffic Take care. Roberto

응답

댓글감사!