You are here: Re: Hard Disk Serial Number « PHP Programming Language « IT news, forums, messages
Re: Hard Disk Serial Number

Posted by mmckeon@gmail.com on 11/14/06 14:12

Anything that you execute using shell_exec() is going to execute on the
server, not the client. I'm failing to see what use the motherboard
serial number of the server is going to provide you with but that is
neither here nor there. How often is this number really going to
change? Wouldn't you be better off storing this stuff in say, an XML
file rather than trying to read it some how through php? That's just my
opinion, I almost never use shell_exec(), as it seems unnecessary to me
for almost any web app.

matt

Raqueeb Hassan wrote:
> 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]


Удаленная работа для программистов  •  Как заработать на 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

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