Heim  >  Artikel  >  php教程  >  PHP的编译选项说明(2)

PHP的编译选项说明(2)

WBOY
WBOYOriginal
2016-06-21 09:02:051279Durchsuche

 

语法: --enable-discard-path
说明: 打开这个选项,使用者就不能透过浏览器读取 .htaccess 等和系统安全相关的
档案。
高精确度数学函式
语法: --enable-bcmath
说明: 打开高精确度函式。必须要先安装本函式库,本选项方有效
强迫 CGI 重导
语法: --enable-force-cgi-redirect
范例: 若使用 CGI VERSION 模式来执行 PHP 的设,打开本选项会增加安全性。例如使
用者读 http://my.host/cgi-bin/php/secret/doc.html 遇到比较了解 PHP 系统的骇
客级使用者可能会自已输入以下网址 http://my.host/secret/doc.html 来读取相关资
。若 PHP Apache 编译在一起,让 PHP 变成 Apache 的一部份,则不需要加入本
选项。
不使用短的标记
语法: --disable-short-tags
说明: 设定本选项后,PHP 的程式就不能使用短的 .... ?> 标记,一定要用 php
...... ?>
的长标记。
引入远端档案
语法: --enable-url-includes
说明: 设定本选项可让 PHP 程式可以引入 (include) 远端的 HTTP FTP 伺服器中
的档案。
关闭语法效果
语法: --disable-syntax-hl
说明: 使用本选项会关闭 PHP 语法的彩色效果。
函式库路径
语法: CPPFLAGS=-IDIR LDFLAGS=-LDIR
说明: PHP 在安全或编译所需的函式库在特别的路径,需要加入本选项,LDFLAGS
表示函式库的路径,CPPFLAGS 表示标头档的路径。
范例: LDFLAGS=-L/my/lib/dir CPPFLAGS=-I/my/include/dir ./configure



Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn