Hi guys,
I'm looking to edit this to just return one particular line rather than the
whole file:
?php
// get a web page into an array and print it out
$fcontents = file ('http://www.php.net');
while (list ($line_num, $line) = each ($fcontents)) {
echo bLine $line_num:/b . htmlspecialchars
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
2 matches
Mail list logo