Re: Disk serial number

From: Date: Thu, 22 Jul 2004 23:44:31 +0000
Subject: Re: Disk serial number
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-191589@lists.php.net to get a copy of this message
I would like to create it as module for PHP like function - like "gethdserial()" - and function to retrieve me serial number of HDD. I know how to retrieve serial number in C, Delphi. "Lars Torben Wilson" <torben@php.net> wrote in message news:41004CFA.4030107@php.net... > Rosen wrote: > > > I can write it to another language ( like C, Delphi ) but I don't know how > > to "integrate" this with PHP - i.e. to create it as module for PHP. > > I would suggest going the simple route for now, then if you need it (for > performance or whatever) later on, write it up as a module then. > > Write a simple little program in whatever language you like which can > fetch the id and print it to standard output. Compile it and test it. > Then in your PHP script, just call that program (using exec(), system(), > backticks, whatever works best for your situation) and read its output. > > Later on, decide whether you need to write a whole module for this > task. Seems like it would be overkill to me. > > > > Cheers, > > Torben <torben@php.net>

« previous php.general (#191589) next »