Text to Image in PHP with GD

This is simple script to demonstrate the capabilities of PHP with the GD library, which provides a lot of image functions that can be useful in many applications.

Shell – How to get surrounding lines of grep result?

Problem:I'm using grep to search for an error and want to display the surrounding lines also as they contain related information. How to do that? Solution:Using grep -C <# of lines to show above and below> <search> <file> The following prints the matched line, along with the 5 lines surrounding it. $ grep -C 5… Continue reading Shell – How to get surrounding lines of grep result?