Skip to content

How to change the colors of xdebug output?

The red and yellow standard colors of xdebug can hurt your eyes after a few hours. http://www.designified.com/blog/article/76/restyling-xdebug-output describes how to replace the style with javascript requiring jquery. I was looking for a more straight forward way and finally found one. Answer The solution is…

Storing/Tracking user activity on a website

I was wondering what would be the best way to go about storing/tracking user activity on a website. I am thinking of user activity along the lines of which webpage a user visited,how many times has …

Why would json_encode return an empty string

I have a simple php structure with 3 nested arrays. I do not use particular objects and I build myself the arrays with 2 nested loops. Here is a sample of the var_dump of the array I want to convert to Json. In another script I have a similar structure and json_encode works fine. So I don’t understand w…

Line endings in a form textarea

Morning, When you post a form which has a textarea, what line endings are used? rn, n or like local files does it depend on the OS? I am tryring to find an RFC or W3C spec or something, or is it different based on OS/browser? Got a link? eg Would it be or and is it a standard or