RE: [PHP] Urgent CPU and|or hdd test
| From: | Marco Tabini | Date: | Mon, 11 Nov 2002 14:38:02 +0000 |
| Subject: | RE: [PHP] Urgent CPU and|or hdd test | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-123814@lists.php.net to get a copy of this message | ||
If you're using linux, you can try to execute this from the command
line:
hdparm -i [device]
to get, among other things, the serial number of a hard drive. You can
then extract it with a simple regular expression.
Marco
--
------------
php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated to PHP programmers
Check us out on the web at http://www.phparch.com
On Mon, 2002-11-11 at 09:38, John W. Holmes wrote:
> > Is there a way i can test the cpu or the hdd for its serial number in
> php
> > under linux and win?
>
> Can you do it from the command line? Run the same command through
> exec(). You can only get information for the server, not anything about
> the client's computer, btw...
>
> ---John Holmes...
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>