[ciapug] PHP 5.3

Jennifer Harvey JHarvey at ifmc.org
Tue Aug 4 15:11:55 CDT 2009


ereg and ereg_replace (and eregi) are deprecated. I chose to replace them with stristr because I was looking for simple strings contained in the variable. The documentation on php.net said to use preg_replace but that is overkill for what I needed. Would have been a simple find/replace, but ereg and ereg_replace use ("needle", $haystack). stristr uses ($haystack, "needle").
 
The only other thing needing fixed was the default timezone.  A simple change to the .ini file.


"CONFIDENTIALITY NOTICE: This communication, including any attachments, may contain confidential information and is intended only for the individual or entity to whom it is addressed.  Any review, dissemination, or copying of this communication by anyone other than the intended recipient is strictly prohibited.  If you are not the intended recipient, please notify us immediately by reply email to privacy at ifmc.org and delete or destroy all copies of the original message and any attachments thereto. Email sent to or from the Iowa Foundation for Medical Care or any of its member companies may be retained as required by law or regulation."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cialug.org/pipermail/ciapug/attachments/20090804/e50a311f/attachment.htm 


More information about the ciapug mailing list