Ok here is an easy one
I want to be able to view lines of a log file in a php webpage. However ... i want to only view certain coloumns... how to i set up each section of the file as a variable... there is a space seperating all of the information i requre so i imagine all i need to do is get php to open the file, and set variables when view them however i wish..
BUT i dont know how..??
any ideas?..
Thanks in advance.
Take a look at the function explode(). It takes a string (in this case one line of your log) and splits it wherever you want (n this case, whenever there's a space). So it returns an array, and you just use that array to get each column.
Diego