php配置XDUBUGWord文件下载.docx
《php配置XDUBUGWord文件下载.docx》由会员分享,可在线阅读,更多相关《php配置XDUBUGWord文件下载.docx(51页珍藏版)》请在冰豆网上搜索。
![php配置XDUBUGWord文件下载.docx](https://file1.bdocx.com/fileroot1/2022-12/7/fa6e4cc9-d3ec-44fa-b7d5-89e24fa94abc/fa6e4cc9-d3ec-44fa-b7d5-89e24fa94abc1.gif)
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