hi, how do you read from a file?
this is my code so far:
is there a better way of doing it? if so please say
any tutorials??
thanx
Martin
Computing help and info:
this is my code so far:
Code:
<?php
$TheFile = "root.php";
$Open = fopen($Filename, "r");
if($Open){
$Data = file($TheFile);
for($n = 0; $n < count($Data); $n++){
$GetLine = explode("\t", $Data[$n]);
echo("$GetLine[0]");
}
fclose($Open);
}else{
echo("File error");
}
?>
is there a better way of doing it? if so please say
any tutorials??
thanx
Martin
Computing help and info: