![]() |
Function eregi() is deprecated help
Hi guys,
I'm just testing out php5.6 on my site and my error logs are filling with "Function eregi() is deprecated" messages that relate to this GARS plugin, from what I've been reading the eregi needs to be replaced with a preg_match, but I just can't get it right. Code:
global $vbulletin; I'm sure it will be a simple fix for one of you guys. Thanks |
Try:
PHP Code:
It would be more efficient to use the stripos() function: PHP Code:
|
Thanks, that seems to have done the trick :)
|
All times are GMT. The time now is 10:27 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|