Archive for snippets
xdebug trace file parser
November 18th, 2009 • 1 comment freebies, php, snippets, software, xdebug

When I am trying to optimize my PHP code, one of my prefered tools is xdebug. It provides me with excellent error messages, outputs code tracing files & insight into memory usage.
By using kcachegrind or webgrind – wincachegrind crashes *all* the time – to parse the cachegrind files created by xdebug, you get a good idea of what your code is doing most of the time. It’ll show you which functions are called, by who, which arguments are passed and tons more. Check it out.
Now, there was one small thing I couldn’t find anywhere. A program to parse the trace files that xdebug generates. True, xdebug already provides the option to output this information into HTML, but it’s not really what I was looking for. I want to get quick information in the blink of an eye! That’s why I have created my own trace file parser, based on PHP of course.
Read more »
memcache_connect() [function.memcache-connect]: Can’t connect to localhost:11211
May 11th, 2009 • 1 comment memcache, memcached, php, snippets
PHP Get monday, sunday, last monday & last sunday
August 22nd, 2008 • 1 comment Uncategorized, php, snippets
vTiger slow account/products popup
April 17th, 2008 • 2 comments php, snippets, vtiger
Tags: adodb, vtiger, vtiger account, vtiger logging, vtiger popup, vtiger slow popup