I’ve got a form uploading input lines of text to a .txt file and would like to display the last 25 lines of the text file on the page with the text entry form (I’d also like to give each line a random left margin value between 1-800px) – how can I achieve it?
Share
I think you will want to check out file(), array_slice(), and rand().
Perhaps something like: