Then the previous article "Yaf 0 Basic Learning Summary 1-YAF Framework Introduction" We have a general understanding of the YAF framework, but for programmers, those words are superficial, the most they want is to start tapping the code. Of course this is the most effective way to learn the YAF framework, the more you knock, the faster you will learn, the same for any language, and we have to install the YAF framework before writing the code.
Compared to other PHP frameworks, Yaf is published as an extension of PHP, we also know that he is based on C language implementation, we do not see its PHP code, of course, the C-language background of people can go to see his C source. People who know how to install PHP extensions can basically skip this article because the installation of YAF is a php extension installation.
The following is the beginning of the installation process for YAF (note that Linux installation)
First, the first step to download the installation package Ah, the official website is HTTP://PECL.PHP.NET/PACKAGE/YAF can choose the latest version of the download, download the completion of the decompression, and into the YAF installation package directory, followed by the following command (where $php_ Bin is the bin directory of the PHP that is already installed on Linux)
$PHP _bin/phpize ./configure--with-php-config= $PHP _bin/php-config make do install
The second step is to modify the PHP configuration file, add the yaf.so extension, and then restart PHP.
So simple, the YAF extension has been installed, in fact, there is a simpler way, because YAF is a pecl extension, so you can directly enter the following command one-click Installation
$PHP _bin/pecl Install Yaf
Well, YAF installation needs everyone to have a certain understanding of Linux, perhaps there are students running PHP on Windows to ask how to install the Yaf extension on Windows, this really stumped me, Bird said:
PHP5.3 start already does not support VC6 compile, currently can only provide PHP5.3 above version use Php_yaf.dll, if necessary, please contact laruence
Reference Source:
YAF 0 Basic Learning Summary 2-YAF Framework installation
Http://www.lai18.com/content/407125.html
YAF 0 Basic Learning Summary 2-YAF Framework installation