The key will be to put some kind of 'if' around your echo statement, but
since you didn't say what the criteria for display is it's pretty tough
to help any further.
If the criteria is content driven, preg_match or ereg are you're answer,
if it's the X'th line in the file then you could probably
Hi guys,
I'm looking to edit this to just return one particular line rather than the
whole file:
http://www.php.net');
while (list ($line_num, $line) = each ($fcontents)) {
echo "Line $line_num: " . htmlspecialchars ($line) . "\n";
}
?>
Can anybody help me?
Kev
___
2 matches
Mail list logo