PHP's archive
$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”;
}
}
}
class B
{
function bar()
{
A::foo();
}
}
$a = new A();
$a->foo();
A::foo();
$b = new B();
$b->bar();
B::bar();
?>
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.
C:\Documents and Settings\Administrator>php -v
PHP 5.2.3 [...]
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.
monitor# pwd
/usr/local/share/cacti/include
see setting dbnya.
monitor# cat [...]
- Sell 3 letter .com domain by riccardorb
- need javascript css expert by consultingpalace
- private project for paolosavona 2 by asmuk
- Web Design Project - 12 by MrSamHunts
- Web Design Project - 11 by MrSamHunts
- Web Design Project - 10 by MrSamHunts
- 50 Links to be added in Business Directory website by designaspect
- Web Design Project - 9 by MrSamHunts
- Web Design Project - 8 by MrSamHunts
- Web Design Project - 7 by MrSamHunts


