answersLogoWhite

0


Best Answer

<?php

// Example to read the subkeys of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft (tested on PHP 5)

// See http://msdn2.microsoft.com/en-us/library/aa392722.aspx for methods

// See http://www.php.net/manual/en/ref.com.php

define('HKEY_LOCAL_MACHINE', 0x80000002);

$computer = '.';

$reg = new COM("winmgmts:{impersonationLevel=impersonate}!\\\\$computer\\root\\default:StdRegProv");

$key_path = 'SOFTWARE\Microsoft';

$sub_keys = new VARIANT();

$reg->EnumKey(HKEY_LOCAL_MACHINE, $key_path, $sub_keys);

foreach($sub_keys as $sub_key){

echo "$sub_key\n";

}

?>

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you read NT registry info with PHP?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How is the registry editor different in Windows XP from how it was in Windows 2000?

Windows NT/2000 Regedit.exe and Regedt32.exe have two different functions. Windows XP has only one single registry editor.


How can you find out whether PHP is up and running on an NT server?

Try typing the command into command prompt: netstat this should tell you what services are running under what ports.


How to migrate from Exchange 5.5 to Exchange 2000?

too many variables to answer. what kind of domain? NT or AD? read all of the tech articles on Technet relating to this. there are MANY which will better answer your question based on your environment. when you have more info, repost your question.


What program can you use to allow Windows NT to read FAT32 partitions?

sorry but i dont no


What is the computer's registry?

The Registry is a database used to store settings and options for the 32 bit versions of Microsoft Windows including Windows 95, 98, ME and NT/2000. It contains information and settings for all the hardware, software, users, and preferences of the PC. Whenever a user makes changes to a Control Panel settings, or File Associations, System Policies, or installed software, the changes are reflected and stored in the Registry.


In Windows NT 2000 XP a file that contains part of the Windows registry is called a n?

it is called a hive.


Which Windows operating system does not support plug and play?

Windows 1.0, 2.0, 3.0, 3.1, NT 3.1, NT 3.5, NT 3.51, and Windows NT 4.Windows 1.0, 2.0, 3.0, 3.1, NT 3.1, NT 3.5, NT 3.51, and Windows NT 4.


What has the author Peter D Hipson written?

Peter D. Hipson has written: 'Database developer's guide with Visual C++ 4' -- subject(s): C++ (Computer program language), Database design, Microsoft Visual C++ 'What every visual C[plus plus] 2 programmer should know' -- subject(s): Visual C 'Mastering Windows 2000 Registry' 'Expert guide to Windows NT 4 Registry' -- subject(s): Microsoft Windows NT, Operating systems (Computers)


On a 2002 subaru outback what does error 6 mean on the CD player?

it means the cd player can,nt read the cd


What operating systems support NTFS?

Windows NT 3.1 (incompatible with NTFS in 3.51 and higher)Windows NT 3.5 (incompatible with NTFS in 3.51 and higher)Windows NT 3.51Windows NT 4Windows 2000Windows XPWindows Server 2003Windows VistaWindows Server 2008Windows 7Mac OS X 10.3 and higher (read-only)LinuxeComStation (read-only)FreeBSD (read-only)OpenBSD (read-only)Other operating systems that do not include support by default but can read or use it with third-party software include:MS-DOS (with NTFS4DOS)Windows 95 (with DiskInternals NTFS Reader)Windows 98 (with DiskInternals NTFS Reader)Windows ME (with DiskInternals NTFS Reader)NetBSD (with FUSE)Solaris (with FUSE)BeOS (with FUSE)Haiku (with FUSE)QNX (with FUSE)


What are the limitations of PHP?

Everything has limitations or disadvantages and PHP is no exception. The following are the limitations of PHP (so be WARNED !!) # PHP is NOT 100 % pure Object Oriented scripting language. But in near future PHP may support 100% object oriented scripting (PHP may imitate most of the syntax of Java language). PHP already imitates some features of Java language. (In future PHP language will imitate most features of Java language and Java programmers will love PHP. And PHP will have java keywords like class, extends, interface, implements, public, protected, private etc..). # PHP will NOT give the performance of "C" or "C++" language. Because it is scripting language and is interpreted it will be a bit slower than the optimized "C++" programs. For top performance, you should use "C++" and fast-CGI with database/webserver connection pooling and use C++ compiler optimizer "-O3" options. Zend optimizer in PHP 4 will speed up the performance of PHP and bring it very close to optimized "C" code . # But note a point that PHP was designed for very Rapid Web-Application Development tool. If it takes about 3 months to code a web application in C++, then using PHP you can develop the same web application in just 4 days!! And with zend optimizer, the speed of execution of PHP will be very close to that of equivalent C++ program!! Hence, there is really no advantage in using C/C++ for web development. PHP itself is written in 100% "C" language. On the other hand, PHP has lot of advantages and it's advantages outweigh it's limitations - # You can very rapidly develop web applications in PHP as compile and link is eliminated in PHP scripting language. # PHP applications are very stable and do not depend on the browser technologies unlike Javascript applications which depend on browsers. PHP will give you the freedom to select any server platform. The browser does not know that the HTML page is generated by PHP !! # PHP has excellent database conectivity to all SQL database servers. # PHP has partial support for Object oriented features # PHP has C++, Perl, Javascript like syntax features and has programs like 'ptags/ctags' to navigate the source code # PHP has Zend optimizer which speeds up the performance # PHP runs on all unixes, linux, Windows 95/NT/2000 and is more powerful than ASP, JSP and others. # PHP has a very large user base and developer base.Ref:http://www.linuxdocs.org/HOWTOs/PHP-HOWTO-14.html


Windows XP allows more than one user to be logged on at the same time?

All Windows systems in the NT line (NT 3.1, NT 3.5, NT 3.51, NT 4, 2000, XP, 2003, Vista, 2008) support multiple users.