Re: [PHP] Disk serial number

2004-07-24 Thread Jason Wong
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

Re: [PHP] Disk serial number

2004-07-24 Thread Rosen
Thanks, But how I can parse this output ? "Burhan Khalid" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Rosen wrote: > > > Yes, on Linux there is a command to get this info, but on windows I think > > there'n no thath command. > > Is there a module for PHP to do this ? > > c:\>dir

Re: [PHP] Disk serial number

2004-07-23 Thread Lars Torben Wilson
Rosen wrote: 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. I assume you want to do it the hard way to learn about programming modules...? As others have said, tr

Re: [PHP] Disk serial number

2004-07-23 Thread Burhan Khalid
Rosen wrote: Yes, on Linux there is a command to get this info, but on windows I think there'n no thath command. Is there a module for PHP to do this ? c:\>dir c:\test.txt Volume in drive C is Primary Volume Serial Number is 003E-6CEA Directory of c:\ 07/23/2004 01:43 PM11 test.

Re: [PHP] Disk serial number

2004-07-23 Thread Rosen
I receive an error: "Warning: dl(): Not supported in multithreaded Web servers - use extension statements in your php.ini " "Tom Rogers" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > Friday, July 23, 2004, 8:26:56 AM, you wrote: > R> Hi, > R> Is there a way to get with

Re: [PHP] Disk serial number

2004-07-22 Thread Tom Rogers
Hi, Friday, July 23, 2004, 8:26:56 AM, you wrote: R> Hi, R> Is there a way to get with PHP script ( maybe with some module) serial R> number of the hard disk? R> Thanks in advance! On windows you can use the win32api like this: registerfunction("long GetLastError Alias GetError () From ker

Re: [PHP] Disk serial number

2004-07-22 Thread Rosen
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" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Rosen wrote: > > > I can write

Re: [PHP] Disk serial number

2004-07-22 Thread Rosen
Is there a documentation how to create a module for PHP ? Thanks in advance! "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Rosen: > > Hi, > > Is there a way to get with PHP script ( maybe with some module) serial > > number of the hard disk? > > There ha

Re: [PHP] Disk serial number

2004-07-22 Thread Lars Torben Wilson
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

Re: [PHP] Disk serial number

2004-07-22 Thread Curt Zirzow
* Thus wrote Rosen: > Hi, > Is there a way to get with PHP script ( maybe with some module) serial > number of the hard disk? There has been a proposol in PECL back in June about making an extension for this very thing. I'm not sure what the current status is but here is the discussion on it:

Re: [PHP] Disk serial number

2004-07-22 Thread Rosen
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. "Matthew Sims" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Yes, on Linux there is a command to get this info, but on windows I think >

Re: [PHP] Disk serial number

2004-07-22 Thread Matthew Sims
> Yes, on Linux there is a command to get this info, but on windows I think > there'n no thath command. > Is there a module for PHP to do this ? > > Thanks! > > My guess is no since it's operating system specific. Unless someone on the list knows for sure. Check Google Groups to see if there's a

Re: [PHP] Disk serial number

2004-07-22 Thread Rosen
Yes, on Linux there is a command to get this info, but on windows I think there'n no thath command. Is there a module for PHP to do this ? Thanks! "Matthew Sims" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi, > > Is there a way to get with PHP script ( maybe with some module

Re: [PHP] Disk serial number

2004-07-22 Thread Matthew Sims
> Hi, > Is there a way to get with PHP script ( maybe with some module) serial > number of the hard disk? > > Thanks in advance! If there's a command on your operating system to get this information, then use PHP's exec function. $serialNum = exec('command to get serial number'); -- --Matthew Si