I'm a newbie to php.
I'm looking for a solution of grepping out lines (from a text file) that contains a phrase that users provide.
for example, a user enters their username and the php script should search all lines that contains that username's name.
I was told to first use the 'get_file_content' method in order to first get the content of the file and encountered a problem already.
My text file is a Linux sendmail log file that contains the following phrases 'to=<email@example.com>',
the 'get_file_content' seem to ignore the < and > characters so here is what left from the above phrase "to=", the < and what comes after is omitted.
Your help is appreciated