News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Access the Windows Registry from PHP
September 10, 2012 @ 15:27:26

New on PHPMaster.com today there's a tutorial showing you how to access the Windows registry with PHP with the help of the win32std extension.

The Windows Registry is simply a hierarchically structured database in which the Windows operating system and other applications store important configuration information. All sorts of data is stored in the registry: user profiles, file-type associations, hardware information, serial numbers, and more. With functions available from the win32std extension, your Windows-based PHP applications can access the registry too. The win32std extension can be downloaded as a pre-compiled library from downloads.php.net/pierre/. Simply drop it into your PHP's ext folder, update your php.ini file, and restart Apache if necessary.

The article talks a bit about the general layout of the registry, the main five keys and the encouragement of making a sandbox registry to perform your operations on rather than taking a chance. He shows how to use the extension's functions to read from the registry and write back out to a certain key. Their example application performs a check on the registry to see if a USB dongle is attached to the system based on a key being set and the device ID.

0 comments voice your opinion now!
windows registry extension win32std tutorial


blog comments powered by Disqus

Similar Posts

Codrops Blog: Fresh Sliding Thumbnails Gallery with jQuery and PHP

PHPMaster.com: Implement Two-Way SMS with PHP

Brian Swan's Blog: Azure Real World: Migrating a Drupal Site from LAMP to Windows Azure

IBM developerWorks: Understanding the Zend Framework, Part 2 (MVC & a Database)

Maarten Balliauw's Blog: Lightweight PHP application deployment to Windows Azure


Community Events





Don't see your event here?
Let us know!


refactor community code podcast developer experience symfony2 series introduction opinion testing language framework homestead unittest list install release laravel threedevsandamaybe

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework