Notes on Java, Solaris, PHP, LDAP…

November 17, 2007

Updating CakePHP and weird PHP debug output

Filed under: Uncategorized — negev @ 4:50 pm
Tags: , ,

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>


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at

%d bloggers like this: