To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > Windows Help

Windows Help Help with the Windows operating system

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-21-2000, 11:58 PM   #1
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
accessing the registry

Does anyone know of a safe way to access the registry for reading or writting from a PHP Script?

Is it necessary to use an external program to do this?

Has anyone out there done this yet?

TIA,
Matthew Nuzum

Anon is offline   Reply With Quote
Old 07-22-2000, 04:52 PM   #2
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: accessing the registry

That's a good question. From an NT/2000 perspective, there are different "hives" of the registry stored in seperate .DAT files in different locations across the filesystem. In addition, the registry is encrypted so that simply opening the .DAT file in, say, Notepad renders it unintelligible.

Win9x stores the registry in a single .DAT file, but has a similar encrytption.

Brett
Anon is offline   Reply With Quote
Old 07-22-2000, 05:32 PM   #3
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: accessing the registry

Command line tools could probably be used along with exec(), but I don't know if any command line tools exist in Win32 distributions.

Has anyone seen or heard of tools that can be used in this fashion?
Anon is offline   Reply With Quote
Old 07-23-2000, 10:48 AM   #4
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: accessing the registry

I see only one way. To write your own DLL extension to PHP which will use WinAPI functions to handle registers. You will need some knowledge about C programming, but handling WinAPI functions isn't difficult, you can find fine help at microsoft web,
knowledge about compiling common DLLs and DLLs as PHP extension (PHP DLL have to contain special function and special array of new function names).
You will also need C compiler (MS Visual C), Cygwin (see notes in "Compiling PHP under Win32" on php.net) and PHP source (necessary!)
GOOD LUCK!
(I'v not any experience in bulding PHP extensions, but I'v been semi-succesfull in porting PHP code from MS VisualC to free C compirer MinGW32 (based on GCC but very similar to MSVC).
Anon is offline   Reply With Quote
Old 07-24-2000, 04:21 AM   #5
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: accessing the registry

you can export the registry with a : regedit -e filename

and import too, but i cannot remember the switch

Anon is offline   Reply With Quote
Old 11-13-2001, 10:50 PM   #6
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: accessing the registry

There is a perl module "Registry.pm".

this module include the registry.dll file,
if we can write our program by registry.dll of perl, it will be easier.

Anon is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 03:17 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.