YAF 0 Basic Learning Summary 2-YAF Framework installation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.