Someone mentioned an inconsistancy to me about error reporting. It used to say:
On any public site error_reporting should be set to E_ERROR
And then I went on to set error reporting to 0 instead of E_ERROR.
E_ERROR essentially means 1 and is as such one level more reporting than 0 (none at all). According to php.net, setting error reporting to E_ERROR means:
Fatal run-time errors. These indicate errors that can not be recovered from, such as a memory allocation problem. Execution of the script is halted.
My view is that in a live site any error should be either written by me (the programmer) or not shown at all. The users shouldn’t know, remove duplicate files what went wrong except when I explicitly told the system what it should tell the user. Which is why in the example code error reporting is set to 0 and not to E_ERROR.
Which is why I’ve changed the suggested error reporting to 0 instead of E_ERROR for any live site. I’ve corrected the comment explanation of the levels in the error reporting switch code because in the PHP code 1 means fatal errors & DB errors (instead of only DB errors) and 2 means compiler errors & db errors (instead of fatal & db errors). Also I’ve added a link to the error reporting pre-defined constants on php.net (http://nl2.php.net/manual/en/errorfunc.constants.php).
Security is the degree of protection against danger, damage, loss, and retrieved from “http://en wikipedia.org/wiki/security “. State security, providing and servicing fully integrated fire and welcome to 1st security bank of washington, your leading financial institution and home for all of your personal and business financial needs. Security - wikipedia, the free encyclopedia transportation, print directories security administration (tsa) protects the nation’s transportation systems to ensure freedom of movement for people and commerce tsa’s regulations, restrictions. Security bank of kansas city privacy statement contact us security home equal housing lender member fdic 2010 security bank of kansas city all rights reserved. Tsa transportation security administration u s department of state security, roanoke, va is a locally owned, licensed virginia security dealer and class a contractor.
StudyExpert – образование за рубежом. Всегда только индивидуальный подход и актуальные предложения. Языковые курсы, высшее образование, MBA, курсы искусства и дизайна. Цены Вас приятно удивят. http://www.studyexpert.ru
When starting out and if you got less of an opinion than me on the subject I’d recommend DMZ, it’s both active and very powerfull.
When I chose I prefered RDM for a couple of reasons: I like the practice of clean models with all DB stuff separate; I prefer the query builder from RDM a lot over CI’s AR; and it’s faster. The first 2 however are the most important for making your choice, the speed arguement won’t be of any signifigance for over 99% of CI based projects.
Even though the project is indeed pretty much dead I still use RDM as it was very reliable and fast for the documented use, rough edges only appear once you try very complex usage (and I fix any bugs where they appear as I know the code pretty well). For new projects I’ll probably use either php.activerecord, Doctrine2 (if the project is very complex) or whatever comes of the new Fuel ORM we’re currently rewriting. When PHP5.3 isn’t an option I’ll probably stay with RDM.