"/http:\/\/www\./test\./com\kok.php/"
...should be...
"/http:\/\/www\./test\.com\/kok.php/"
However, I see no reason to use a regular expression for that (and incur its additional overhead) when you could just use strpos() for the same thing, since there is no pattern-matching required.
if (strpos($check, 'http://www.test.com/kok.php') !== false) { // be sure to use !== not !=
(Use [man]stripos/man if you want it to be case-insensitive.)