<?
//echo 'is there : ',array_key_exists('CONTENT_TYPE',$_ENV),'<br>';
//echo 'is there : ',array_key_exists('PEUDIR',$_ENV),'<br>';
//if (!array_key_exists('CONTENT_TYPE',$_ENV)) {
$postfile='post.cmd';
if (file_exists($postfile)){
$handle=fopen($postfile,"r");
while (strlen($fileinfo=fgets($handle))>0){
$fileinfo= str_replace(array("\r","\n"),"",$fileinfo); /* strip cr , lf */
// $_POST[substr($fileinfo,0,strpos($fileinfo,'='))]=substr($fileinfo,strpos($fileinfo,'=')+1);
list($keytje,$ident)=split('=',$fileinfo,2);$_POST[$keytje]=$ident;
}
fclose($handle);unlink($postfile);
/* echo "length post = " . count($_POST) .'<br>'; */
reset($_POST);
// test uitvoer
/* for ($i=0;$i<count($_POST);$i++) {
echo $i ," ", current($_POST),' ' ,key($_POST),'<br>';
next($_POST);
}
reset($_POST);
*/
} else {
/* misschien niet nodig daar het systeem steeds weer gestart wordt */
// clear $_POST
foreach ($_POST as $i=>$value) {unset($_POST[$i]);}
}
//}
?>