Is there any other way to get a computer mac address and able to redirect page i notice that if i remove the code for getting the mac address the redirect / header works
    <?php
    session_start();
    include('dbConnect.php');
    ob_start(); // Turn on output buffering
    system(‘ipconfig /all’); //Execute external program to display output
    $mycom=ob_get_contents(); // Capture the output into a variable
    ob_clean(); // Clean (erase) the output buffer
    $findme = “Physical”;
    $pmac = strpos($mycom, $findme); // Find the position of Physical text
    $mac=substr($mycom,($pmac+36),17); // Get Physical Address
    $qry=("SELECT * FROM table_comp_list WHERE comp_mac = '$mac'");
    $result=mysql_query($qry);  
    if($result)
        {
        if(mysql_num_rows($result) != 1) 
            {
                header("Location: add.php");
                die();
            }
        else
            {
                header("Location: edit.php");
                die();
            }
        }?>
 
    