"){ die (); } $t1 = $_GET['t1']; $t2 = $_GET['t2']; if(!preg_match("/[a-zA-Z0-9]+/", $t1) || !preg_match("/[a-zA-Z0-9]+/", $t2)){ die("Error"); } $call = << TXT update add cacert-{$t1}. 60 TXT {$t2} send quit EOF; echo $call; $nsupdate = popen("/usr/bin/nsupdate -k .key", 'w'); fwrite($nsupdate, $call); $retval = pclose($nsupdate); // nsupdate doesn't return anything useful when called this way ?>