search

其他配制选项_PHP

Jun 01, 2016 pm 12:39 PM
useSafetyset upthisOptions

--enable-sysvsem

包括对Sys V 信号(大部分Unix系统都支持)。请参看信号和共享内存文档来获取更多信息。

--enable-sysvshm

包括对Sys V 共享内存的支持(大部分的Unix系统都支持)。请参阅信号和共享内存文档来获取更多信息。

--with-xml

包括对一种非正式版本的XML语法的支持,使用的是James Clark’s expat library。参阅XML 函数指南获取细节。

--enable-maintainer-mode

打开额外的相关和编译警告信息,这些信息经常被PHP3的开发人员所使用。

--with-system-regex

使用系统正则表达式的库胜于使用捆绑的那一个。如果你将PHP3编译为服务器组件,编译时和连接服务器时必须使用同一个库。如果系统中有你所需要的东西,就打开这个选项,如果可能,推荐你使用同PHP3捆绑在一起的库。

--with-config-file-path

这个路径是PHP3启动时用来寻找php3.ini文件位置的。

--with-exec-dir

仅仅允许在处于安全模式下的目录里执行,默认是 /usr/local/bin/。这个选项只能被设置为默认,他可以后来通过修改配制文件里的safe_mode_exec_dir来实现。

--disable-debug

在库中或执行中不包括调试信息。调试信息可以帮助你迅速查明问题所在,因此,只要PHP还处在alpha或beta的测试阶段,最好保留调试信息。

--enable-safe-mode

缺省是打开”safe_mode”(安全模式)选项,这个选项强加于PHP功能一些限制,如你只能在打开你在WEB根目录下面的文件,请详细阅读安全那一章以获得详细信息。CGI用户应该总保持这个选项是打开的。这个选项只能被设置为缺省,但是你可以后来通过修改配置文件(php3.ini)来打开或关闭这个选项。

--enable-track-vars

使用PHP3来保存从HTTP_GET_VARS, HTTP_POST_VARS 或 HTTP_COOKIE_VARS. 来的请求GWT/POST/cookie的轨迹。这个选项被设为缺省值,用户也可以在以后在 configuration file中设置track_vars的值来改变它的属性(enabled或者disabled)。

--enable-magic-quotes

设置使魔术引用成为缺省值。这个选项仅仅设置这种缺省情况,它可以使用在configuration file中指定magic_quotes_runtime的方法设置为可用或不可用。请参考有关 magic_quotes_gpc 和magic_quotes_sybase的相应内容。

--enable-debugger

激活内在的PHP3 debugger支持。这个特性还仅仅处于实验的阶段。请参考configuration file.中Debugger Configuration 的有关内容。

--enable-discard-path

如果该属性被置为可用,PHP的二进制CGI能够安全的被防置在WED树以外的地方,同时他人不能采用某种特殊的手段来获得存取权。请参考section in the security chapter中关于这个选项的内容。

--enable-bcmath

使BC风格的任意精度数学函数可以使用。请参考configuration file中有关 configuration file的选项。

--enable-force-cgi-redirect

使用安全检查内部服务器的重新定向。如果用户在Apache上运行CGI程序需要使用这个特性。

当把PHP当成CGI二进制来使用时,作为缺省的设置,PHP将首先检查它是否被重新定向所使用(例如,在Apache上使用活动指示)。这将确认PHP二进制不能被用来直接调用从而跳过标准的WEB服务器身份鉴定程序,例如:http://my.host/cgi-bin/php/secret/doc.html。这个例子存取了http://my.host/secret/doc.html,但是没有进行过HTTPD为目录/secret所做的安全设置。

不使用这个选项而关闭这种检查同时使用旁路HTTPD安全和身份设置。如果您要这样做的话,除非是您的服务器软件不能指出一种安全的重新定向;同时在您的文件夹根目录和用户目录中的文件将被任何人存取。

请参考安全那一章中有关这个选项的内容。

--disable-short-tags

禁止短形势的PHP3标签 ?>。如果你想使用XML(扩展标记语言)的话,就必须禁用 ?>,那么,PHP的代码标签就只剩下了。这个选项只能被设置为默认。可以通过修改配置文件里的short open tag指令来打开或者关闭这个选项。

--enable-url-includes

通过include()函数,PHP3能够直接运行其它HTTP和FTP站点的代码。参阅配置文件里的include path选项。

--disable-syntax-hl

关闭语法突出显示功能。

CPPFLAGS and LDFLAGS

为了能在PHP的安装过程中能在不同的路径下找到头文件和库文件,修改cppllags和ldflags环境变量。如果你正在使用一种智能shell(命令解释程序),你应当能够设置LDFLAGS=-L/my/lib/dir CPPFLAGS=-I/my/include/dir ./configure


Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Optimize PHP Code: Reducing Memory Usage & Execution TimeOptimize PHP Code: Reducing Memory Usage & Execution TimeMay 10, 2025 am 12:04 AM

TooptimizePHPcodeforreducedmemoryusageandexecutiontime,followthesesteps:1)Usereferencesinsteadofcopyinglargedatastructurestoreducememoryconsumption.2)LeveragePHP'sbuilt-infunctionslikearray_mapforfasterexecution.3)Implementcachingmechanisms,suchasAPC

PHP Email: Step-by-Step Sending GuidePHP Email: Step-by-Step Sending GuideMay 09, 2025 am 12:14 AM

PHPisusedforsendingemailsduetoitsintegrationwithservermailservicesandexternalSMTPproviders,automatingnotificationsandmarketingcampaigns.1)SetupyourPHPenvironmentwithawebserverandPHP,ensuringthemailfunctionisenabled.2)UseabasicscriptwithPHP'smailfunct

How to Send Email via PHP: Examples & CodeHow to Send Email via PHP: Examples & CodeMay 09, 2025 am 12:13 AM

The best way to send emails is to use the PHPMailer library. 1) Using the mail() function is simple but unreliable, which may cause emails to enter spam or cannot be delivered. 2) PHPMailer provides better control and reliability, and supports HTML mail, attachments and SMTP authentication. 3) Make sure SMTP settings are configured correctly and encryption (such as STARTTLS or SSL/TLS) is used to enhance security. 4) For large amounts of emails, consider using a mail queue system to optimize performance.

Advanced PHP Email: Custom Headers & FeaturesAdvanced PHP Email: Custom Headers & FeaturesMay 09, 2025 am 12:13 AM

CustomheadersandadvancedfeaturesinPHPemailenhancefunctionalityandreliability.1)Customheadersaddmetadatafortrackingandcategorization.2)HTMLemailsallowformattingandinteractivity.3)AttachmentscanbesentusinglibrarieslikePHPMailer.4)SMTPauthenticationimpr

Guide to Sending Emails with PHP & SMTPGuide to Sending Emails with PHP & SMTPMay 09, 2025 am 12:06 AM

Sending mail using PHP and SMTP can be achieved through the PHPMailer library. 1) Install and configure PHPMailer, 2) Set SMTP server details, 3) Define the email content, 4) Send emails and handle errors. Use this method to ensure the reliability and security of emails.

What is the best way to send an email using PHP?What is the best way to send an email using PHP?May 08, 2025 am 12:21 AM

ThebestapproachforsendingemailsinPHPisusingthePHPMailerlibraryduetoitsreliability,featurerichness,andeaseofuse.PHPMailersupportsSMTP,providesdetailederrorhandling,allowssendingHTMLandplaintextemails,supportsattachments,andenhancessecurity.Foroptimalu

Best Practices for Dependency Injection in PHPBest Practices for Dependency Injection in PHPMay 08, 2025 am 12:21 AM

The reason for using Dependency Injection (DI) is that it promotes loose coupling, testability, and maintainability of the code. 1) Use constructor to inject dependencies, 2) Avoid using service locators, 3) Use dependency injection containers to manage dependencies, 4) Improve testability through injecting dependencies, 5) Avoid over-injection dependencies, 6) Consider the impact of DI on performance.

PHP performance tuning tips and tricksPHP performance tuning tips and tricksMay 08, 2025 am 12:20 AM

PHPperformancetuningiscrucialbecauseitenhancesspeedandefficiency,whicharevitalforwebapplications.1)CachingwithAPCureducesdatabaseloadandimprovesresponsetimes.2)Optimizingdatabasequeriesbyselectingnecessarycolumnsandusingindexingspeedsupdataretrieval.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use