Re: Disk serial number
| From: | Jason Wong | Date: | Sun, 25 Jul 2004 01:35:26 +0000 |
| Subject: | Re: Disk serial number | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-191792@lists.php.net to get a copy of this message | ||
On Saturday 24 July 2004 19:15, Rosen wrote:
Please do not top post.
> But how I can parse this output ?
> > c:\>dir c:\test.txt
> > Volume in drive C is Primary
> > Volume Serial Number is 003E-6CEA
There are many ways to go about this, I'll outline one of them. First you need
to grab the output so:
exec('dir c:\', $output);
Then you can use something like substr() on $output[1] (the second line) to
grab the serial number.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
A fanatic is a person who can't change his mind and won't change the subject.
- Winston Churchill
*/