Hacker News new | ask | show | jobs
by LarryMade2 4609 days ago
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...

That's it basically. Good Luck