|
Posted by Raqueeb Hassan on 11/13/06 12:59
Iván Sánchez Ortega wrote:
> Erwin Moller wrote:
>
> > I wouldn't know of a command that produces the serialnumber, but if you
> > know such a command, you can use shell_exec() to execute it.
>
> If you're using Linux, hdparm and sdparm are your friends.
>
> On the otherhand, if you use a recent 2.6 kernel, you don't have to run any
> external programs, but read some file inside /sys/class/.
<snip>
As the OP wanted to get those information passed to php, it is possible
to get the required reading as part of REGEX string from those commands
or the file mentioned above. Extracting motherboard information can be
little tricky, I guess.
--
Raqueeb Hassan
Bangladesh
Navigation:
[Reply to this message]
|