how do i make php read a text file then find keywords in that file and only display the results of what it found (i'm going to use wildcards with the keywords so i can sort data to different text files)
that way it can only display the part of the text it found and write it to a new text file... i was wondering if anybody could give me an example of that or tell me what commands?
I really appreciate anybody who helps thanks.
Edit:
Example of what's in text.txt
XServer=192.168.1.2;
XServer=192.168.1.3;
XServer=192.168.1.4;
XServer=192.168.1.5;
XResolutionServer=192.168.1.6;
XResolutionServer=192.168.1.7;
XResolutionServer=192.168.1.8;
I'd want my PHP code to key in on the XServer part (leaving th resolution part out) and write that section of the text file to a new (text)file so i can do something with that text file...
does anybody have an example or some code on how to do this?
all help is appreciated.