What are you even trying to say? Please be more specific. And titles don't describe everything. Get that fact down.
maybe: file_get_contents() stristr() || strstr() OR explode(' ', file_get_contents()); in_array() If you need more help, be more specific.anyway, google can help you
I want to check if a text file, I open with fopen (no, I wont use config), contains a special string how am I doing that?
Ingredients: file_get_contents (copies contents of a file into a string), strpos (checks if a substring exists in a string, and finds its position if exists) Steps: 1. Read the file into a string using file_get_contents(). 2. Check if the "special text" you want to search for exists in the string by using strpos() !== false With code: PHP: $hasString = strpos(file_get_contents($file), $specialText) !== false; Is that so hard? This is what programming is about. Why make it so absurdly complicated?