Created
January 23, 2013 03:07
-
-
Save mchung/4601514 to your computer and use it in GitHub Desktop.
recreating wordpress wp_options
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// from db | |
echo "from db\n"; | |
$db_value = 'a:1:{i:0;s:19:"heroku-sendgrid.php";}'; | |
echo $db_value; | |
echo "\n"; | |
var_dump(unserialize($db_value)); | |
echo "\n"; | |
// recreating... | |
echo "recreating\n"; | |
$db_option = array( | |
0 => "heroku-sendgrid.php" | |
); | |
echo serialize($db_option); | |
echo "\n"; | |
var_dump($db_option); | |
?> |
Author
mchung
commented
Jan 23, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment