Reset wordpress password using provided link not work, sadly no phpmyadmin available 🙂 Fortunately I have shell access which is enough, using built in md5 function to generate and update the password, here’s the steps: 1. Creating md5 – Using shell Just type : md5 -s your chosen password – Make php script with this […]
Category: PHP
$this and php
Little mistake on naming variable make me confuse for almost an hour. $this yes, $this is built-in variable that often use in OOP. By using $this, we refer to self referencing variable. More in php.net manual <?php class A { function foo() { ifĂ‚Â (isset($this))Ă‚Â { echo ‘$thisĂ‚Â isĂ‚Â definedĂ‚Â (‘; echo get_class($this); echo “)\n”; }Ă‚Â elseĂ‚Â { echo “\$thisĂ‚Â isĂ‚Â notĂ‚Â defined.\n”; } } […]
Install PHP6, easy install in windows
PHP6, I thought I already have latest one. 5.2.6 but I’m wrong 🙂 Quick way to try PHP6 is by installing Appserv 2.6.0, click here to download php 6.0.0-dev Installation process is the same as other appserv series : 1. Double click installer
Setting path for PHP CLI
What is that for? my friend asked my a question after lunch. Well, install php using file from php.net don’t automatically set environment path for php location. As result we must type full location of php.exe each time we must execute php from command line. Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. […]
Reset Cacti Password, step by step
My other staff ask me password for username admin. Yes, its administrator level in cacti. After hardy trying to remember I gave up, I decide to reset it to other value but how? I try to find out using database approach : Here’s my steps : 1. Checking for cacti location and see db setting. […]