I have the following code but did't extract the required information.
<?php
$macdata = '10ca501574998b01bac2573de1284221';
$handle = popen('./cgi-bin/irisreg check '.$macdata, 'r');
$read = fread($handle, 2096);
pclose($handle);
if($read != 'ok')
{
$result = $handle.'Invalid or Corrupt Machine Data';
}
else
{
$handle = popen('./cgi-bin/irisreg prodid '.$macdata, 'r');
$inprodid = fread($handle, 2096);
pclose($handle);
$handle = popen('./cgi-bin/irisreg macid '.$macdata, 'r');
$inmacid = fread($handle, 2096);
pclose($handle);
}
?>
Here product id should be like 61c20d (not exactly but similar characters.