Sunday, January 14, 2007

PEAR.... em.. what it is??

"I like PHP because it has alot of library, like pear,gd2....",
"oh? so what is pear??"
"pear is a extension for us to load more php library...."
"......... superb!... how is it works???"
"......"

Some windows PHP developer may not know they have a PHP package-manager in their PC. PEAR stands for "PHP Extension and Application Repository". The instruction shown below may "enable" the PEAR with your PHP in your windows box:

1.execute C:\PHP\go-pear.bat the cmd-line wizard will shown, just choose ur best option.
2. make sure the include_path=".;C:\PHP\pear;c:\php\includes" entry is set in ur php.ini
3. thats it, run the pear command by using the command php.exe c:\php\pear\pearcmd.php you'll see the usage of it

you can manage the PHP extended library by using pear, like install, remove, list and so on. just like yum, apt-get, pkg_add in linux and BSD.

No comments: