<?php $file = "mailman/config2.txt"; $open = fopen($file, "r"); $size = filesize($file); $count = fread($open, $size); $pos1 = strpos($count, '"', 8); $pos2 = strpos($count, '"', $pos1+1); $length = $pos2-$pos1; $hostn = substr($count,$pos1+1,$length-1); //echo($hostn); $pos1 = strpos($count, '"',$pos2+1); $pos2 = strpos($count, '"', $pos1+1); $length = $pos2-$pos1; $usern = substr($count,$pos1+1,$length-1); //echo($usern); $pos1 = strpos($count, '"',$pos2+1); $pos2 = strpos($count, '"', $pos1+1); $length = $pos2-$pos1; $passn = substr($count,$pos1+1,$length-1); //echo($passn); $pos1 = strpos($count, '"',$pos2+1); $pos2 = strpos($count, '"', $pos1+1); $length = $pos2-$pos1; $dbname = substr($count,$pos1+1,$length-1); fclose($open); ?>