faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

42 of 49 people (86%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

Can I read NT registry info from PHP? How?

Nov 27th, 2008 02:48
healthy man, dman, Articles Way, radomir merhaut, Henrik Hansen, Kai Yu,


<?php
  system("setx variable -k 
HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Produ
c
tId > Reg.txt");
  $RegFile = "Reg.txt";
    $fp=fopen($RegFile,"r");
      $line=fread($fp,filesize($RegFile));
      list($variable,$value) = explode(":",$line);
    fclose($fp);
  echo $value;
?>
SetX.exe - Tools from ResKit WinNT
=======
governmentsecurity.org/articles/WindowsNTRegistryTutorial.php
http://www.healthdothealth.com
http://www.healthxhealth.com
http://www.mesotheliomainmesothelioma.com
http://www.healthfirewall.com
http://www.flathealth.com
http://www.healthbodyguard.com