Re: accessing the regisry with php
| From: | Cary | Date: | Mon, 26 Aug 2002 06:25:37 +0000 |
| Subject: | Re: accessing the regisry with php | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-15511@lists.php.net to get a copy of this message | ||
Here's something you might try. I haven't tried it with PHP, but I do use it as a shortcut for a couple of VFP programs I have written when needing to make registry entries.
Use PHP to write yourself a .reg file. Then run the .reg file with the exec command.
If you have time to try this I would really like to know if it work through PHP's exec.
Cary
At 09:47 PM 8/25/02, Kevin Fonner wrote:
We'll I have been using Windows Scripting Host to do maintenance on the computers in our comapany. Now I'm getting tired of dealing with vbscript for windows and bash for unix/linux systems. I'd like to standardize the scripting language I use for our company's mundane tasks. I've looked at everything and PHP seems awsome. So that would mean that I am talking about the side of PHP that you run from the command line. One important task though that I use a lot in vbscript is accessing the registry. I do it for a lot of things such as change settings for applications and stuff. I definitly am not planning to access the registry via their files. That would be sort of windows suicidal.. especially with XP. Vbscript has the support built in. I didn't expect the same from php however I know their is a lot of fancy stuff out their. Maybe it would be possible through COM. I have already tried out the php and COM combo and it seems to work alright. Haven't done that before though and I just wanted to see if anyone has come up with a simple way to do it. Any comments and ideas are appreciated. Thanks, Kevin Ross Fleming wrote:fopen on system.dat and user.dat? For win9x at least, I've no idea where xp and such store the registry. In fact, not having a 9x machine to hand, I couldn't tell you how easy it is to interpret the two registry files. I would imagine it's bloody dangerous and difficult though. What are you trying to achieve? There may be another option if u tell us what you're accessing it for :) Ross-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php-----Original Message----- From: Kevin Fonner [mailto:kevin@fonner.net] Sent: 25 August 2002 19:34 To: php-windows@lists.php.net Subject: [PHP-WIN] accessing the regisry with php Anybody know what a good way to access the windows registry with PHP? Thanks, Kevin -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php