February 10th, 2010 by admin

 
<?php
$userfile="input.txt";
$bol=file_exists($userfile);
if($bol){
         $array = file($userfile);
           for($x=0;$x<count($array);$x++){
             $line=$array[$x];
               $field=explode(";", $line);
print("
<task>
<domain>
<name>".trim($field[0])."</name>
</domain>
</task>
");
}
}else{
print("File not found!");
}
?>

Post to Twitter Post to Facebook

Comments are closed.