You are here: Re: Get a list of network interfaces in PHP? « PHP Programming Language « IT news, forums, messages
Re: Get a list of network interfaces in PHP?

Posted by Enzo Canuzzi on 10/24/06 12:42

Hi,

> Any thoughts? I'd prefer not to have to run the script as root,
> incidentally. I realize I could run as root and then just parse the
> output of ifconfig, but I assume there's a more intelligent way to go
> about what I'm trying to do.

You can read in the /proc files. Try for example $cat /proc/net/dev.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация