|
|
|
|
|
by frapbot
4612 days ago
|
|
This is basically what I have to accomplish: Take a CSV file containing logs and crawl through it.
Log snippets should be linked to specific links (in this case, solutions).
Generate an output (another csv with the links added). |
|
> 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