So after only 12 days of having blog I forgot my password. Luckily, I can usually code my way out of any mess I get into related to software. I'm not a hardware guy. If it breaks, I usually just replace it. Anyways, I checked the SPHPBLOG site and the forum said you needed to re-run the installation files. Since I'm a lazy programmer, I decided to skip that option. Therefore, I whipped up a quick php script.
After running this script I simply needed to copy the hashes over into the password.php file and I was able to login to my blog. Not a bad solution. It makes me feel sorry for the people who can't program.
<?
$username = 'username';
$password = 'password';
$hashedUser = crypt( $username );
$hashedPass = crypt( $password );
print "username: $hashedUser\n";
print "password: $hashedPass\n";
?>
After running this script I simply needed to copy the hashes over into the password.php file and I was able to login to my blog. Not a bad solution. It makes me feel sorry for the people who can't program.



Most Recent Entries



