Hi,
Here is a little thing I don't understand. I will simplify the situation to make it easier to understand.
$keyword=snowreport;
$query = Tignes and (ski report or snowreport);
$found = preg_match("/\b$keyword/i", $query);

I get this warning back: Unknown modifier 't' in ...

Although he did find snowreport in the query string just fine.

Can anybody explain me what it means and how maybe I can disable warnings (if that is possible).

Thanks in advance

FS

    Hi,

    I can't say why you get this warning but you can disable warning but putting an @ before the command

    example:

    $found = @preg_match("/\b$keyword/i", $query);

    Hope this helps a little bit :-)

      Problem found: In the list of keywords that where matched against the query there was one word that contained a \"/\". That caused the warning. Hope this can be off any help to anyone have the same problem in the future.

      Greetings

      FS

        10 months later

        or disable them with error_reporting(0); or another numer. Check this function on php.net

          Write a Reply...