Menu
Hi,
Im looking for a function that allows me to get to the nest line of a file that is read if something is true eg…
[code=php]
$fp = fopen($filename, “r”); //Open the server log
$content = fread($fp, filesize($filename)); // Read the server log
$content = explode(“n”, $content); // explode into array
$content = array_reverse($content ); // reverse the array
$a = 2;
if ($a <3 ‘then goto next line of file’){
then do some stuff in here}
else{}
Can anyone help with this please??
Thanks. Eon201