Should i need to install or include the framework extrnally?
I have installed XAMPP in my windows xp machine. and I am using the Eclipse as an Editor. I haven't include or installed the framework yet. And inside the Program Files/XAMP/php fol开发者_开发百科der I noticed a PEAR directory. Is that enough or should I install/include the framework externally.
You may be suffering from a bit of confusion.
XAMPP is an "all-in-one" installation of a web server (Apache), PHP, and a database (MySQL) and a few more tools.
Eclipse is an IDE.
Neither of these things are frameworks.*
PEAR is a package repository, not unlike Perl's CPAN or Python's Cheese Shop Package Index. PEAR isn't a framework either.
If you want to use a PHP framework, you are going to need to obtain it and install it yourself. Note that most frameworks do not require separate, system-level installation, and can simply be bundled with your code. Some frameworks allow system-level installation, and even use the PEAR infrastructure to do so. Refer to each framework's specific documentation for more information on how to best install them.
*Yes, Eclipse could be kind of a framework maybe, but let's not go there.
If you are just experimenting, using the XAMPP PEAR version is fine. If PEAR isn't installed, go-pear.bat will install it for you from the php directory. However, if you want to deploy the app made with the framework, you really should create a local copy of the PEAR install directory (using pear install -R <dir> package
option), because you don't want to upgrade PEAR and break your deployed app.
精彩评论