Do you have a question? Post it now! No Registration Necessary. Now with pictures!
October 27, 2004, 9:11 am
rate this thread
From the php script I want to read the log file and write the
output to the browser. This operation has to carried out for
till the perl script completes the process. This can be identifed
by [Process Completed] in the log file.
My problem is when I read the first line and print to the browser it
was going fine. Second time when the loop continues it print the sample
content again and again. This has to be avoided and it has the print the
new logs only. Or clear the previous output and print it fresh again.
Actually in the second time it should print only
Can any one guide me how to handle this situation.
while ($line = fgets($fp))
if ($line != "Completed")
print $line ."<BR>";