If I have a file, like read.txt
And I have many lines in it... how can I take out a specific line from it??
Is this a good way to do it?
<?php
$file=fopen("read.txt","r");
while (!feof($file))
{
$rad = fgets($file);
list($key,$value) = split("=",$rad);
if ($key=='Value')
{
echo "Value is $value";
}
}
fclose($file);
?>
This doesnt work... something with the
$rad = fgets($file); line....??