I am making a script to log hits on my webpage (Yes I know that there are already a million out there). Anyway.. how do i make the log entries be written to the top of the log file? Also how can I limit the number of entries? Some sample code would be nice.
Since this is kindof a double question I will increase the points some if I get a good answer.