Hi guys,
My host has recently upgraded to PHP 5.3 - unfortunately this has created a lot of PHP warnings on my site.
Namely:
Deprecated: Function eregi() is deprecated
I'm a complete newbie when it comes to writing PHP would any gurus be able to convert these lines to "preg_replace" it's my understanding that this will then fix the warnings.
PHP Code:$path = eregi_replace('^index2?.php', '', $path);
PHP Code:$newurl = eregi_replace("(&|\?)$var=[^&]*", '\\1', $url);
Thank you so much for any help!PHP Code:$newurl = eregi_replace("(&|\?)$var=$value(&|\$)", '\\1\\2', $url);



Reply With Quote
Bookmarks