跳到主要內容

What is phpize

What is phpize

According to the PHP official document:
The phpize command is used to prepare the build environment for a PHP extension.
If you need to build such an extension that from github or another code repositories, you can use  build tools to perform the build manually. 

How to use

For example, the sources for an extension are in a directory named csext:
$ cd csext
$ phpize
$ ./configure --with-php-config=/path/bin/php-config
$ make
# make install
A success install will have created csext.so and you will need to add an extension=csext.so line to php.ini file.

Or you can create a new ini file to your additional ini parse directory.
For example:
$ echo "extension=csext.so" > /path/php/ini/csext.ini

More

phpize source code: github

留言

這個網誌中的熱門文章

input 陣列 - PHP

要如何在 input 裡面回傳陣列資料呢? 就寫了一個簡單的小範例。 以下是 php 原始碼 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 <?php /** 印出Get裡面的資訊 **/ if ( ! empty ( $_GET )) print_r ( $_GET ); /** 初始資料設定 **/ $id = array ( 0 => '#0001' , 1 => '#0002' ); $data [ $id [ 0 ]] = array ( 'date' => '2012-08-12' , 'note' => '上海出差' ); $data [ $id [ 1 ]] = array ( 'date' => '2012-08-17' , 'note' => '北京出差' ); /** 印出表單資訊 **/ echo "<form method='get'>" ; foreach ( $data as $key => $row ){ echo "<input type='text' name=' { $key } [date]' value=' { $row [ 'date' ] } ' />" ; echo "<input type='text' name=' { $key } [note]' value=' { $row [ 'note' ] } ' />" ; echo "<br />" ; } echo "<input type='submit' value='送出' />" ; e...