Anti advertisement not working?
#2

Check the documentation for strfind because you are using it incorrectly. You need to check that it is "not -1" rather than "equal to 0" because strfind returns the position the substring was found at and not just true or false.

Edit: for cleaner code and more efficient maintenance you should add all search keywords into an array and loop over it. To verify an IP address you can also use sscanf:
PHP код:
sscanf(input"{p<.>dddd}"
Reply


Messages In This Thread
Anti advertisement not working? - by karemmahmed22 - 21.09.2015, 20:33
Re: Anti advertisement not working? - by Vince - 21.09.2015, 22:31
Re: Anti advertisement not working? - by karemmahmed22 - 22.09.2015, 05:48
Re: Anti advertisement not working? - by karemmahmed22 - 22.09.2015, 08:17

Forum Jump:


Users browsing this thread: 1 Guest(s)