PHP的编译选项说明(1)
在细部选项上,除了上述的安装简述外,也可以在编译时加入其它的选项。
阿帕契模组
语法: --with-apache=DIR
说明: 用本选项可以让 PHP 以阿帕契的模组方式使用,DIR 的字串可以是
/usr/local/apache 或其它安装阿帕契的目录
范例: --with-apache=/var/lib/apache
fhttpd 伺服器模组
语法: --with-fhttpd=DIR
说明: 若使用 fttpd 伺服器,可以使用本指令编译 PHP。用模组的方式配合 fttpd 伺
服器,可以有较好的效能。
Adabas D 资料库
语法: --with-adabas=DIR
说明: 资料库系统为 Adabas D 资料库时需要加本选项。关于 Adabas D 资料库的细
节,可以参考 http://www.adabas.com。
范例: --with-adabas=/usr/local/adabasd
dBase 资料表
语法: --with-dbase
说明: 只要加本选项,不用其它的参数或函式库,PHP 就会让系统有存取 dBase 资料
表的功能。
filePro 资料库
语法: --with-filepro
说明: 不用指定资料库路径及其它函式库等,可以读取 filePro 资料库 (唯读)。
mSQL 资料库
语法: --with-msql=DIR
说明: 提供存取 mSQL 资料库。更多的细节请参考 mSQL 的网站
http://www.hughes.com.au。
范例: --with-msql=/usr/local/Hughes
MySQL 资料库
语法: --with-mysql=DIR
说明: 提供存取 MySQL 资料库。更多的细节请参考 MySQL 的网站
http://www.tcx.se。
范例: --with-mysql=/usr/local/mysql
iODBC 资料库装置
语法: --with-iodbc=DIR
说明: 提供 ODBC 资料库装置,用来存取后端资料库。更多的细节请参考 iODBC 的网
站 http://www.iodbc.org。
范例: --with-iodbc=/usr/local/iodbc
OpenLink ODBC 资料库装置
语法: --with-openlink=DIR
说明: 使用 OpenLink ODBC 资料库装置,用来存取后端资料库。更多的细节请参考
OpenLink ODBC 的网站 http://www.openlinksw.com。
范例: --with-openlink=/usr/local/openlink
Oracle 资料库
语法: --with-oracle=DIR
说明: 使用 Oracle 资料库。Oracle 的版本要在 7.3 版以上。您也可以在 PHP 程式
中使用环境变数 ORACLE_HOME 来指定 Oracle 的路径。更多有关 Oracle 的资讯请参
考 Oracle 的网站 http://www.oracle.com。
范例: --with-oracle=/export/app/oracle/product/7.3.2
PostgreSQL 资料库
语法: --with-pgsql=DIR
说明: 使用 PostgreSQL 资料库。更多有关 PostgreSQL 的资讯请参考 PostgreSQL 的
网站 http://www.postgreSQL.org 或台湾的 Mirror 站
http://postgresql.ccit.edu.tw。
范例: --with-pgsql=/usr/local/pgsql
Solid 资料库
语法: --with-solid=DIR
说明: 使用 Solid 资料库。更多有关 Solid 的资讯请参考 Solid 的网站
http://www.solidtech.com。
范例: --with-solid=/usr/local/solid
Sybase 资料库
语法: --with-sybase=DIR
说明: 使用 Sybase 资料库。更多有关 Sybase 的资讯请参考 Sybase 的网站
http://www.sybase.com。
范例: --with-sybase=/home/sybase
Sybase-CT 资料库
语法: --with-sybase-ct=DIR
说明: 使用 Sybase-CT 资料库。
范例: --with-sybase-ct=/home/sybase
Velocis 资料库
语法: --with-velocis=DIR
说明: 使用 Velocis 资料库。有关 Velocis 资料库的进一步资料请参考 Raima 公司
的网站 http://www.raima.com。
范例: --with-velocis=/usr/local/velocis
自订 ODBC 资料库驱动程式
语法: --with-custom-odbc=DIR
说明: 使用自订的 ODBC 函式库。当然,在使用本方式时要指定 CUSTOM_ODBC_LIBS 及
CFLAGS 变数。例如在 QNX 机器上使用 Sybase SQL Anywhere 时可能要设定系统环境
变数 CFLAGS=-DODBC_QNX、LDFLAGS=-lunix 及
CUSTOM_ODBC_LIBS="-ldblib -lodbc",并要在 PHP 设定加
--with-custom-odbc=/usr/lib/sqlany50
范例: --with-custom-odbc=/usr/local/odbc
不使用 ODBC 资料库驱动程式
语法: --disable-unified-odbc
说明: 使用本选项将使所有的 ODBC 资料库驱动程式不作用。本选项不用指定路径,而
受本选项影响的选项
有 --with-iodbc、--with-solid、--with-adabas、--with-velocis
及 --with-custom-odbc。
LDAP 目录协定
语法: --with-ldap=DIR
说明: 若要使用目录协定 (Lightweight Directory Access Protocol, LDAP) 则必须
要打开本选项。有关 LDAP 的细节,可以参考 RFC 文件的 RFC1777 及 RFC1778。
范例: --with-ldap=/usr/local/ldap.
mcrypt 编码函式库
语法: --with-mcrypt=DIR
说明: 当安装了 mcrypt 函式库后,可在编译 PHP 时加入本选项,让程式可以使用编
解码功能。
范例: --with-mcrypt=/usr/local/include
Sys V 信号
语法: --enable-sysvsem
说明: 要使用 SysV 的信号 (semaphores) 机制,则要打开本选项。
XML 支援
语法: --with-xml
说明: 打开本选项可以支援 James Clark’s 写的 XML 剖析程式库。
维护模式
语法: --enable-maintainer-mode
说明: 本选项一般不会打开,除非是 PHP 开发人员比较有用。
常规表示程式库
语法: --with-system-regex
说明: 若您需要额外的常规表示功能,可以加入本选项。
PHP 设定档
语法: --with-config-file-path=DIR
说明: 用来指定 php3.ini 或 php4.ini 的路径,供 PHP 初始化时使用。
范例: --with-config-file-path=/usr/local/lib
PHP 执行路径
语法: --with-exec-dir=DIR
说明: 有时为了系统的安全性考量,会指定 PHP 程式一定要在哪个目录执行。
范例: --with-exec-dir=/usr/local/bin
除错模式
语法: --enable-debug
说明: 本选项一般不会使用,除非在开发 PHP 程式时比较有用。它可以显示额外的错
误讯息。
安全模式
语法: --enable-safe-mode
说明: 内定值是打开的,可以对系统安全提供比较多的保护。
变数追踪
语法: --enable-track-vars
说明: 让 PHP 能 追踪 HTTP_GET_VARS、HTTP_POST_VARS 及 HTTP_COOKIE_VARS 三个
变数,一般是打开的。
自动加引入字元
语法: --enable-magic-quotes
说明: 可让程式在执行时自动加入反斜线的引入字元。
开启除错器
语法: --enable-debugger
说明: 打开内建的 PHP 除错器。目前本功能还在实验阶段,尚未成熟。
取消路径 (discard path)

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The differences between Oracle and Sybase are: 1. SQL syntax is inconsistent; 2. The post-processing mechanism for over-long fields is different. Oracle does not have an automatic truncation mechanism when inputting over-long characters, while Sybase’s processing mechanism is automatic truncation; 3. Chinese field byte length Inconsistent, 1 Chinese character in the Sybase database occupies 2 bytes, and 1 Chinese character in the Oracle database occupies 3 bytes; 4. Character type conversion is different; 5. Null value reading results are inconsistent; 6. Query statement output default sorting is inconsistent; 7 , The date format is inconsistent.

Sybase is a database based on client/server architecture. It is an open, high-performance, programmable database that can use event-driven triggers, multi-threading, etc. to improve performance.

Title: Detailed explanation of the characteristics and differences between Sybase and Oracle databases In the modern information age, database management systems play a vital role. Sybase and Oracle, as two well-known relational database management systems, have attracted widespread attention. This article will delve into the features and differences between Sybase and Oracle, and further demonstrate the similarities and differences between them through specific code examples. 1. Sybase database features: Powerful transaction processing capabilities: Sybase database is known for its outstanding

Operating system: Centos7.21. Download the ODBC installation package unixODBC-2.3.9.tar.gzfreetds-1.3.9.tar.gz2. Installation steps. Step 1: Upload two installation packages to the server. Step 2: Install unixODBC. Install this first, then install freetds. Note: If the installation order is inconsistent here, the libtdsodbc.so driver file will not be generated (very important) 2.1. The operating system first installs gcc: yuminstallgcc2.2, and installs odbctar-xvfunixODBC-2.3.9.tar .gzcdunixODBC-2.3.9./conf

The core differences between Sybase and Oracle database management systems require specific code examples. Database management systems play a vital role in the field of modern information technology. As two well-known relational database management systems, Sybase and Oracle occupy an important position in the database field. important position. Although they are both relational database management systems, there are some core differences in practical applications. This article will compare Sybase and Oracle from multiple perspectives, including architecture, syntax, performance, etc.

Many of us have seen this snippet over and over again in Python code: with open('Hi.text', 'w') as f: f.write("Hello, there") However, some of us Some people don't know what with is used for and why we need to use it here. In this read, you'll find out about almost any problem that can be solved with. let's start! First, let's consider what we need to do without using the with keyword. In this case we need to open the file first and try to write. Regardless of success or failure, we'd better be

In today's technological era, with the advent of the Internet and data era, databases have become the core of enterprises' information storage. As the amount of data increases and continues to expand, enterprises need an efficient, stable, and fast database tool to meet their growing needs. Among the many database tools, MySql and Sybase are two database tools that have attracted much attention. This article will conduct a comparative analysis of MySql and Sybase to help users choose the appropriate database tool according to different needs. MySql is a

Comparison of functions and performance of Sybase and Oracle database systems With the continuous development and progress of information technology, database systems, as one of the infrastructures for enterprise management information, play a vital role. Sybase and Oracle, as one of the mainstream relational database management systems (RDBMS), are widely used in their respective fields. This article will compare the functions and performance of two database systems, Sybase and Oracle, and analyze them with specific code examples. Basic
