The Schworak Site | Log In | Up One Level


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.

Beautiful PHP dump to use in place of var_dump or print_r

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.

Cross session variables that survive a reboot.

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.

All content on this site is copyright ©2004-2018 and is not to be reproduced without prior permission.