Archive for the ‘php’ Category

Fix serialized array errors

Posted: 10th January 2011 by shadyvb in php, wordpress
Tags: , , , ,

After spending 3 painful hours fixing options of cForms plugin for WP, after migration to live site, i’ve discovered this bit of code at php.net, which helped me fix the options array and get my forms back online. $serialized = preg_replace_callback( ‘!(?

PHP Function to read folder contents recursively into a multidimensional array like a tree.