23 Feb 07
Updating a closely tied library (CakePHP) in an existing application
- comparing plain original CakePHP and existing app: diff -r cake ~/my-app/trunk/cake
- copying new CakePHP over it
- applying any of the custom changes
— if we had plain CakePHP in CVS/SVN, then we could automate it – except where custom changes were in conflict with Cake update
Strange debug outputs from PHP
When debugging an SQL query in PHP, I’ve displayed it using ‘echo’ or ‘print_r’. Most of the query displayed fine but conditions which used lower-than, grater-than – for these browser hide a part of them and displayed only OR (‘2006-11-25′<’2007-02-28′) instead of (‘2006-11-25′<Experience.created AND Experience.created<’2007-02-28′) – because browsers interpret <… as HTML tag opener. However, it displays <= and >= correctly!
Solution: Always show debug printouts within <pre>…</pre>