php配置XDUBUGWord文件下载.docx

上传人:b****4 文档编号:17576736 上传时间:2022-12-07 格式:DOCX 页数:51 大小:37.51KB
下载 相关 举报
php配置XDUBUGWord文件下载.docx_第1页
第1页 / 共51页
php配置XDUBUGWord文件下载.docx_第2页
第2页 / 共51页
php配置XDUBUGWord文件下载.docx_第3页
第3页 / 共51页
php配置XDUBUGWord文件下载.docx_第4页
第4页 / 共51页
php配置XDUBUGWord文件下载.docx_第5页
第5页 / 共51页
点击查看更多>>
下载资源
资源描述

php配置XDUBUGWord文件下载.docx

《php配置XDUBUGWord文件下载.docx》由会员分享,可在线阅读,更多相关《php配置XDUBUGWord文件下载.docx(51页珍藏版)》请在冰豆网上搜索。

php配置XDUBUGWord文件下载.docx

SeethePHPdocsformorespecificinformation.

Thesyntaxofthefileisextremelysimple.Whitespaceandlines

beginningwithasemicolonaresilentlyignored(asyouprobablyguessed).

Sectionheaders(e.g.[Foo])arealsosilentlyignored,eventhough

theymightmeansomethinginthefuture.

Directivesfollowingthesectionheading[PATH=/www/mysite]only

applytoPHPfilesinthe/www/mysitedirectory.Directives

followingthesectionheading[HOST=]onlyapplyto

PHPfilesservedfrom.Directivessetinthese

specialsectionscannotbeoverriddenbyuser-definedINIfilesor

atruntime.Currently,[PATH=]and[HOST=]sectionsonlyworkunder

CGI/FastCGI.

Directivesarespecifiedusingthefollowingsyntax:

directive=value

Directivenamesare*casesensitive*-foo=barisdifferentfromFOO=bar.

DirectivesarevariablesusedtoconfigurePHPorPHPextensions.

Thereisnonamevalidation.IfPHPcan'

tfindanexpected

directivebecauseitisnotsetorismistyped,adefaultvaluewillbeused.

Thevaluecanbeastring,anumber,aPHPconstant(e.g.E_ALLorM_PI),one

oftheINIconstants(On,Off,True,False,Yes,NoandNone)oranexpression

(e.g.E_ALL&

~E_NOTICE),aquotedstring("

bar"

),orareferencetoa

previouslysetvariableordirective(e.g.${foo})

ExpressionsintheINIfilearelimitedtobitwiseoperatorsandparentheses:

|bitwiseOR

^bitwiseXOR

&

bitwiseAND

~bitwiseNOT

!

booleanNOT

Booleanflagscanbeturnedonusingthevalues1,On,TrueorYes.

Theycanbeturnedoffusingthevalues0,Off,FalseorNo.

Anemptystringcanbedenotedbysimplynotwritinganythingaftertheequal

sign,orbyusingtheNonekeyword:

foo=;

setsfootoanemptystring

foo=None;

foo="

None"

;

setsfootothestring'

None'

Ifyouuseconstantsinyourvalue,andtheseconstantsbelongtoa

dynamicallyloadedextension(eitheraPHPextensionoraZendextension),

youmayonlyusetheseconstants*after*thelinethatloadstheextension.

Aboutthisfile;

PHPcomespackagedwithtwoINIfiles.Onethatisrecommendedtobeused

inproductionenvironmentsandonethatisrecommendedtobeusedin

developmentenvironments.

php.ini-productioncontainssettingswhichholdsecurity,performanceand

bestpracticesatitscore.Butpleasebeaware,thesesettingsmaybreak

compatibilitywitholderorlesssecurityconscienceapplications.We

recommendingusingtheproductioniniinproductionandtestingenvironments.

php.ini-developmentisverysimilartoitsproductionvariant,exceptit'

s

muchmoreverbosewhenitcomestoerrors.Werecommendingusingthe

developmentversiononlyindevelopmentenvironmentsaserrorsshownto

applicationuserscaninadvertentlyleakotherwisesecureinformation.

QuickReference;

Thefollowingareallthesettingswhicharedifferentineithertheproduction

ordevelopmentversionsoftheINIswithrespecttoPHP'

sdefaultbehavior.

Pleaseseetheactualsettingslaterinthedocumentformoredetailsastowhy

werecommendthesechangesinPHP'

display_errors

DefaultValue:

On

DevelopmentValue:

ProductionValue:

Off

display_startup_errors

error_reporting

E_ALL&

~E_NOTICE&

~E_STRICT&

~E_DEPRECATED

E_ALL

~E_DEPRECATED&

~E_STRICT

html_errors

Productionvalue:

log_errors

max_input_time

-1(Unlimited)

60(60seconds)

output_buffering

4096

register_argc_argv

request_order

None

"

GP"

session.bug_compat_42

session.bug_compat_warn

session.gc_divisor

100

1000

session.hash_bits_per_character

4

5

short_open_tag

track_errors

url_rewriter.tags

a=href,area=href,frame=src,form=,fieldset="

a=href,area=href,frame=src,input=src,form=fakeentry"

variables_order

EGPCS"

GPCS"

php.iniOptions;

Nameforuser-definedphp.ini(.htaccess)files.Defaultis"

.user.ini"

user_ini.filename="

Todisablethisfeaturesetthisoptiontoemptyvalue

user_ini.filename=

TTLforuser-definedphp.inifiles(time-to-live)inseconds.Defaultis300seconds(5minutes)

user_ini.cache_ttl=300

LanguageOptions;

EnablethePHPscriptinglanguageengineunderApache.

engine=On

ThisdirectivedetermineswhetherornotPHPwillrecognizecodebetween

<

?

and?

>

tagsasPHPsourcewhichshouldbeprocessedassuch.It'

sbeen

recommendedforseveralyearsthatyounotusetheshorttag"

shortcut"

and

insteadtousethefull<

phpand?

tagcombination.Withthewidespreaduse

ofXMLanduseofthesetagsbyotherlanguages,theservercanbecomeeasily

confusedandendupparsingthewrongcodeinthewrongcontext.Butbecause

thisshortcuthasbeenafeatureforsuchalongtime,it'

scurrentlystill

supportedforbackwardscompatibility,butwerecommendyoudon'

tusethem.

short_open_tag=On

AllowASP-style<

%%>

tags.

asp_tags=Off

Thenumberofsignificantdigitsdisplayedinfloatingpointnumbers.

precision=14

Outputbufferingisamechanismforcontrollinghowmuchoutputdata

(excludingheadersandcookies)PHPshouldkeepinternallybeforepushingthat

datatotheclient.Ifyourapplication'

soutputexceedsthissetting,PHP

willsendthatdatainchunksofroughlythesizeyouspecify.

Turningonthissettingandmanagingitsmaximumbuffersizecanyieldsome

interestingside-effectsdependingonyourapplicationandwebserver.

Youmaybeabletosendheadersandcookiesafteryou'

vealreadysentoutput

throughprintorecho.Youalsomayseeperformancebenefitsifyourserveris

emittinglesspacketsduetobufferedoutputversusPHPstreamingtheoutput

asitgetsit.Onproductionservers,4096bytesisagoodsettingforperformance

reasons.

Note:

OutputbufferingcanalsobecontrolledviaOutputBufferingControl

functions.

PossibleValues:

On=Enabledandbufferisunlimited.(Usewithcaution)

Off=Disabled

Integer=Enablesthebufferandsetsitsmaximumsizeinbytes.

ThisdirectiveishardcodedtoOfffortheCLISAPI

output_buffering=4096

Youcanredirectalloftheoutputofyourscriptstoafunction.For

example,ifyousetoutput_handlerto"

mb_output_handler"

character

encodingwillbetransparentlyconvertedtothespecifiedencoding.

Settinganyoutputhandlerautomaticallyturnsonoutputbuffering.

Peoplewhowroteportablescriptsshouldnotdependonthisini

directive.Instead,explicitlysettheoutputhandlerusingob_start().

Usingthisinidirectivemaycauseproblemsunlessyouknowwhatscript

isdoing.

Youcannotuseboth"

with"

ob_iconv_handler"

andyoucannotuseboth"

ob_gzhandler"

and"

zlib.output_compression"

.

output_handlermustbeemptyifthisisset'

On'

!

Insteadyoumustusezlib.output_handler.

output_handler=

Transparentoutputcompressionusingthezliblibrary

Validvaluesforthisoptionare'

off'

'

on'

oraspecificbuffersize

tobeusedforcompression(defaultis4KB)

Resultingchunksizemayvaryduetonatureofcompression.PHP

outputschunksthatarefewhundredsbyteseachasaresultof

compress

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 初中教育 > 语文

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1