What you are most likely getting is a warning similar to this...
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead
That warning is simply telling you that preg_replace will not be supported in future versions of PHP.
That is a WARNING, not an error. You can safely turn off deprecated warnings using something like this as the first line of the code...
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
|