Post: For those of you with: Deprecated: Function eregi() is deprecated
05-10-2011, 12:53 AM #1
(adsbygoogle = window.adsbygoogle || []).push({});
Originally posted by 039

I've seen a few users with this problem so I thought i'd make a thread on it incase anyone else comes across this. So basically if you get:
    
Deprecated: Function eregi() is deprecated in C:\xampp....

Or something similar this is because you are using PHP 5.3.0 or earlier because eregi is one of the functions that has been deprecated in the new version. The solution is to use preg_match or to downgrade but I recommend to use preg_match because it could be the case that everyone will start to upgrade so it's useful knowledge to have. This is a website which may explain it in a bit more detail and shows an example of how to replace eregi with preg_match.
You must login or register to view this content.


source You must login or register to view this content.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo