Tips and tricks relating to PHP. All of our sites are written using PHP and some times it is tough to find the answers to some issues. Hopefully the things recorded here will help you.
PHP is pretty nice offering var_dump and print_r to let us dump the contents of a variable. The only problem is that is is abit ugly to look at and recursing into objects isn't always all that useful. Here is a solution.
Some times you may need to communicate across sessions. Or perhaps you need a value to survive a server reboot. There are two basic ways to perform this, store your data in a database or store it in a file.