Re: [PHP-DOC] Network Interface Card Name

This is a discussion on Re: [PHP-DOC] Network Interface Card Name within the PHP General forums, part of the PHP Programming Forums category; Forwarding to correct list. On Mon, Jul 7, 2008 at 10:25 AM, Kapil Kapil <help.language@gmail.com&...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-07-2008
Thiago H. Pojda
 
Posts: n/a
Default Re: [PHP-DOC] Network Interface Card Name

Forwarding to correct list.

On Mon, Jul 7, 2008 at 10:25 AM, Kapil Kapil <help.language@gmail.com>
wrote:

> No, I want the name of network interface cards of server, not of client.
>
> Thanks & regards
> Kapil
>
>
> On Mon, Jul 7, 2008 at 6:38 PM, Thiago H. Pojda <thiago.pojda@gmail.com>
> wrote:
>
>> That's client-side you're probably not going to do that w/o any
>> client-side software.
>>
>> You should be asking this on php-general.
>>
>>
>> Regards,
>> Thiago
>>
>> On Mon, Jul 7, 2008 at 8:19 AM, Kapil Kapil <help.language@gmail.com>
>> wrote:
>>
>>> Hi !
>>>
>>> I want to get the name of network interface card, like - "VIA Rhine I
>>> Fast Ethernet Adapter". Is there any function in php for this or perhaps a
>>> way to find it out?
>>>
>>> Thanks
>>>
>>> Kapil
>>>
>>>
>>>
>>>

>>
>>
>> --
>> Thiago Henrique Pojda

>
>
>



--
Thiago Henrique Pojda

Reply With Quote
  #2 (permalink)  
Old 07-07-2008
Per Jessen
 
Posts: n/a
Default Re: [PHP] Re: [PHP-DOC] Network Interface Card Name

Thiago H. Pojda wrote:

>>> On Mon, Jul 7, 2008 at 8:19 AM, Kapil Kapil
>>> <help.language@gmail.com> wrote:
>>>
>>>> Hi !
>>>>
>>>> I want to get the name of network interface card, like - "VIA Rhine
>>>> I Fast Ethernet Adapter". Is there any function in php for this or
>>>> perhaps a way to find it out?


Not really a PHP question, but the answer is 'lspci'.
Here's some sample output:

00:0c.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 26)
04:0a.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 26)



/Per Jessen, Zürich

Reply With Quote
  #3 (permalink)  
Old 07-07-2008
Shawn McKenzie
 
Posts: n/a
Default Re: [PHP] Re: [PHP-DOC] Network Interface Card Name

Per Jessen wrote:
> Thiago H. Pojda wrote:
>
>>>> On Mon, Jul 7, 2008 at 8:19 AM, Kapil Kapil
>>>> <help.language@gmail.com> wrote:
>>>>
>>>>> Hi !
>>>>>
>>>>> I want to get the name of network interface card, like - "VIA Rhine
>>>>> I Fast Ethernet Adapter". Is there any function in php for this or
>>>>> perhaps a way to find it out?

>
> Not really a PHP question, but the answer is 'lspci'.
> Here's some sample output:
>
> 00:0c.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 26)
> 04:0a.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 26)
>
>
>
> /Per Jessen, Zürich
>


Windows you can use: ipconfig /all


Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : localdomain
Description . . . . . . . . . . . : Intel(R) PRO/1000 PL
Network Connection

-Shawn
Reply With Quote
  #4 (permalink)  
Old 07-07-2008
Thiago H. Pojda
 
Posts: n/a
Default Re: [PHP] Re: [PHP-DOC] Network Interface Card Name

No, there isn't.

It's a system-related info and doesn't affect how PHP works. And, IMHO, it's
good that PHP is not aware of these stuff.

Use exec(), `, or system() to run these commands.


Regards,
Thiago

On Mon, Jul 7, 2008 at 2:51 PM, Kapil Kapil <help.language@gmail.com> wrote:

> This is a way, I know but does there any function in php specific to this..
>
> Thanks
> Kapil
>
>
> On Mon, Jul 7, 2008 at 10:16 PM, Thiago H. Pojda <thiago.pojda@gmail.com>
> wrote:
>
>> Forwarding if you're not on this list.
>>
>>
>> ---------- Forwarded message ----------
>> From: Shawn McKenzie <nospam@mckenzies.net>
>> Date: Mon, Jul 7, 2008 at 12:30 PM
>> Subject: Re: [php] Re: [PHP-DOC] Network Interface Card Name
>> To: php-general@lists.php.net
>>
>>
>> Per Jessen wrote:
>>
>>> Thiago H. Pojda wrote:
>>>
>>> On Mon, Jul 7, 2008 at 8:19 AM, Kapil Kapil
>>>>>> <help.language@gmail.com> wrote:
>>>>>>
>>>>>> Hi !
>>>>>>>
>>>>>>> I want to get the name of network interface card, like - "VIA Rhine
>>>>>>> I Fast Ethernet Adapter". Is there any function in php for this or
>>>>>>> perhaps a way to find it out?
>>>>>>>
>>>>>>
>>> Not really a PHP question, but the answer is 'lspci'. Here's some sample
>>> output:
>>>
>>> 00:0c.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32
>>> LANCE] (rev 26)
>>> 04:0a.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32
>>> LANCE] (rev 26)
>>>
>>>
>>>
>>> /Per Jessen, Zürich
>>>
>>>

>> Windows you can use: ipconfig /all
>>
>>
>> Ethernet adapter Local Area Connection:
>>
>> Connection-specific DNS Suffix . : localdomain
>> Description . . . . . . . . . . . : Intel(R) PRO/1000 PL Network
>> Connection
>>
>> -Shawn
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>>
>> --
>> Thiago Henrique Pojda

>
>
>



--
Thiago Henrique Pojda

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:23 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0