Re:Ask HN: How do I learn LAMP?
by LarryMade2 on Thursday November 07, 2013 @09:26AM
(#6689444)
So the project entails specifically this, beyond just learning LAMP, this will help you focus on your PHP research:
> Take a CSV file containing logs and crawl through it.
google this: PHP parse Log Files
> Log snippets should be linked to specific links (in this case, solutions)
so you need to use Regex (probably using preg_match()) to locate certain string occurrences in the log file and use a look-up table of solutions (if it is small could be a hard coded array, if it is big probably a MySQL Table.)
> generate output
either echo results enclosed in <pre> tags with or with appropriate header() options...
> Take a CSV file containing logs and crawl through it.
google this: PHP parse Log Files
> Log snippets should be linked to specific links (in this case, solutions)
so you need to use Regex (probably using preg_match()) to locate certain string occurrences in the log file and use a look-up table of solutions (if it is small could be a hard coded array, if it is big probably a MySQL Table.)
> generate output
either echo results enclosed in <pre> tags with or with appropriate header() options...
That's it basically. Good Luck