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, try the PECL site (http://pecl.php.net). Look on the 'Documentation' page. Click on the 'Developing custom PHP extendsions'. Check out the other links on the page as well; there appear to be quite a few of them.

Also, Google will help. So will the mailing list archives, and also, just
read through some of the existing modules.


Torben

"Lars Torben Wilson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

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 <[EMAIL PROTECTED]>

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to