好!欢迎访问迷津渡口 现在时间是: 天气 °C ~ °C

迷津渡口

越感到迷惑 越接近真理

php教程-get_include_path和set_include_path

要了解这两个函数,首先得了解php.ini里面关于include_path的配置机制。

include_path定义

include_path定义的值为字符串,值为目录绝对路径的集合,值之间使用:(Linux)或者;(Windows)分隔。

分隔符可使用 PATH_SEPARATOR 常量获取,保证兼容性。

include_path作用

include_path定义的目录值将影响require, include, fopen(), file(), readfile()和file_get_contents()函数查找文件。

查找顺序为设置了绝对路径或者相对路径的直接按照路径查找,没有设置的首先按照include_path定义的文件夹,从第一个找到最后一个,直到找到文件为止,没有找到则查找当前文件夹。

其实include_path和linux或windows的PATH环境变量作用是一样的。

get_include_path作用

获取当前include_path的值

用法:

get_include_path();

返回只读的include_path值的字符串。

set_include_path作用

暂时修改当前include_path的值,仅在当前文件的作用域有效,不会保存到php.ini。

用法举例:将当前目录添加到include_path

@set_include_path(get_include_path() . PATH_SEPARATOR .
dirname(__FILE__));


在模板机制中这两个函数是经常使用的,必须掌握~

点赞3
   支持一下
挤眼 亲亲 咆哮 开心 想想 可怜 糗大了 委屈 哈哈 小声点 右哼哼 左哼哼 疑问 坏笑 赚钱啦 悲伤 耍酷 勾引 厉害 握手 耶 嘻嘻 害羞 鼓掌 馋嘴 抓狂 抱抱 围观 威武 给力
 点赞
 签到
 表情
 图片
 代码
提交评论

清空信息
关闭评论
allmydibs
 allmydibs 2019-04-18 12:00回复
#176
<a href="http://www.diplomabroad.com/adidas-samba-turnschuhe-wei%C3%9F-schuheh">adidas samba turnschuhe wei脽</a> <a href="http://www.trechadental.com/nike-air-max-flair-2017-men-white-navy-blue-shoesk">nike air max flair 2017 men white navy blue</a> <a href="http://www.akhbarsanaye.com/nike-kd-viii-orange-gr%C3%B8n-sort-gr%C3%A5-skoj">nike kd viii orange gr酶n sort gr氓</a> <a href="http://www.timxes.com/converse-alle-star-marine-blau-schuheh">converse alle star marine blau</a> <a href="http://www.leadercheetah.com/adidas-stan-smith-white-white-shoesk">adidas stan smith white white</a> <a href="http://www.arealleader.com/michael-kors-jet-set-mk-logo-print-signature-tote-brown-mkh">michael kors jet set mk logo print signature tote brown</a>
allmydibs http://www.allmydibs.com/
bladeid
 bladeid 2019-04-18 00:34回复
#175
<a href="http://www.autopilotart.com/nike-free-run-4.0-r%C3%B8d-gull-chaussuresb">nike free run 4.0 r酶d gull</a> <a href="http://www.iflextoday.com/nike-city-sandal-ii-b%C3%B8rn-sort-hvid-obuvd">nike city sandal ii b酶rn sort hvid</a> <a href="http://www.iamsamart.com/new-blance-620-enfants-blanc-violet-chaussuresa">new blance 620 enfants blanc violet</a> <a href="http://www.groupontatil.com/nike-kd-8-hvid-and-bl%C3%A5-pill-butya">nike kd 8 hvid and bl氓 pill</a> <a href="http://www.dblynx.com/nike-air-max-2015-femminile-bianca-viola-scarpef">nike air max 2015 femminile bianca viola</a> <a href="http://www.alpertsonline.com/nike-lebron-13-kinder-gold-butyf">nike lebron 13 kinder gold</a>
bladeid http://www.bladeid.com/
wadeesley
 wadeesley 2019-04-17 12:43回复
#174
<a href="http://www.dominiogold.com/converse-mujeres-negro-and-blanco-zapatosk">converse mujeres negro and blanco</a> <a href="http://www.saaqlabaie.com/women-air-jordan-retro-5-red-black-shoesj">women air jordan retro 5 red black</a> <a href="http://www.acheidf.com/rockstar-hats-hath">rockstar hats</a> <a href="http://www.jrsmetalsinc.com/nike-kobe-10-elite-blanco-negro-zapatosl">nike kobe 10 elite blanco negro</a> <a href="http://www.kumowindham.com/nike-mercurial-superfly-colorful-acc-fg-brown-white-black-shoesk">nike mercurial superfly colorful acc fg brown white black</a> <a href="http://www.waybeyondeli.com/kvinner-air-jordan-retro-11-gr%C3%A5-dark-bl%C3%A5-obuvi">kvinner air jordan retro 11 gr氓 dark bl氓</a>
wadeesley http://www.wadeesley.com/
kxconcrete
 kxconcrete 2019-04-17 09:58回复
#173
<a href="http://www.seocontenidos.com/north-face-brown-down-jacket-northfaceh">north face brown down jacket</a> <a href="http://www.elitexgaming.com/nike-air-max-2014-schwarz-rot-schuhek">nike air max 2014 schwarz rot</a> <a href="http://www.chezpenny.com/air-jordan-retro-14-r%C3%B8d-skoi">air jordan retro 14 r酶d</a> <a href="http://www.williherren.com/noir-converse-chaussures-on-vente-chaussuresh">noir converse chaussures on vente</a> <a href="http://www.alimonis.com/new-era-9forty-nhl-hatl">new era 9forty nhl</a> <a href="http://www.galvomode.com/nike-dunk-low-pro-sb-noir-blanc-chaussuresh">nike dunk low pro sb noir blanc</a>
kxconcrete http://www.kxconcrete.com/
emcetolerie
 emcetolerie 2019-04-17 07:25回复
#172
<a href="http://www.profancyshop.com/air-jordan-rojo-zapatosk">air jordan rojo</a> <a href="http://www.lmcgroep.com/air-huarache-yellow-shoesi">air huarache yellow</a> <a href="http://www.nowaitnails.com/nike-air-max-herren-schwarz-schuhei">nike air max herren schwarz</a> <a href="http://www.xmrujo.com/mujeres-air-jordan-retro-5-naranja-rojo-zapatosp">mujeres air jordan retro 5 naranja rojo</a> <a href="http://www.sevenguard.com/herre-nike-air-max-1-hvid-r%C3%B8d-skoi">herre nike air max 1 hvid r酶d</a> <a href="http://www.escortsue.com/nike-free-run-2-kvinners-oransje-gr%C3%B8nn-obuvq">nike free run 2 kvinners oransje gr酶nn</a>
emcetolerie http://www.emcetolerie.com/
joehalvorson
 joehalvorson 2019-04-17 04:25回复
#171
<a href="http://www.crowleyarms.com/women-mackage-pant-and-skirt-mackageb">women mackage pant and skirt</a> <a href="http://www.toptopprinter.com/tory-burch-camel-boots-toryburchr">tory burch camel boots</a> <a href="http://www.tridenttrump.com/billig-nike-free-flyknit-5.0-herre-gr%C3%B8n-runningd">billig nike free flyknit 5.0 herre gr酶n</a> <a href="http://www.ceeditsesame.com/red-mackage-coat-mackager">red mackage coat</a> <a href="http://www.ritaburton.com/michael-kors-handbags-vanilla-leather-zone-mke">michael kors handbags vanilla leather zone</a> <a href="http://www.blanchardsvac.com/moncler-acorus-down-moto-jacket-uk-monclerd">moncler acorus down moto jacket uk</a>
joehalvorson http://www.joehalvorson.com/
kalrakis
 kalrakis 2019-04-16 05:06回复
#170
<a href="http://www.dbievents.com/converse-low-rojo-zapatosh">converse low rojo</a> <a href="http://www.ilankocaeli.com/adidas-crazylight-boost-primeknit-hvid-skok">adidas crazylight boost primeknit hvid</a> <a href="http://www.msignworx.com/nike-free-run-4.0-v3-kvinner-gr%C3%A5-rosa-obuvi">nike free run 4.0 v3 kvinner gr氓 rosa</a> <a href="http://www.dianegrams.com/nike-roshe-gray-and-blanco-zapatosl">nike roshe gray and blanco</a> <a href="http://www.jobstodayng.com/oakleys-batwolf-black-frame-brown-lens-sunglassesh">oakleys batwolf black frame brown lens</a> <a href="http://www.hardcoreboris.com/arkansas-razorbacks-2-for-28-top-of-the-world-ncaa-teamwork-cap-hatj">arkansas razorbacks 2 for 28 top of the world ncaa teamwork cap</a>
kalrakis http://www.kalrakis.com/
penfoldscott
 penfoldscott 2019-04-16 04:46回复
#169
<a href="http://www.lovemescort.com/nike-cortez-nylon-kvinner-hvit-gr%C3%A5-svart-obuvk">nike cortez nylon kvinner hvit gr氓 svart</a> <a href="http://www.amardinlipi.com/black-and-brown-coach-crossbody-coachh">black and brown coach crossbody</a> <a href="http://www.penfoldscott.com/maschio-nike-flyknit-racer-viola-rosso-scarpej">maschio nike flyknit racer viola rosso</a> <a href="http://www.periplaneto.com/nike-nero-air-max-invigor-scarpei">nike nero air max invigor</a> <a href="http://www.kocaelimtm.com/brooklyn-nets-pro-standard-nba-blackout-strapback-cap-hath">brooklyn nets pro standard nba blackout strapback cap</a> <a href="http://www.alanlgrimmdds.com/hommes-nike-air-max-2016-fire-rouge-noir-hommes-chaussuresh">hommes nike air max 2016 fire rouge noir hommes</a>
[url=http://www.penfoldscott.com/]penfoldscott[/url]
linnwoodpark
 linnwoodpark 2019-04-16 00:15回复
#168
<a href="http://www.mypointsphone.com/adidas-zx-flux-schwarz-blume-schuhej">adidas zx flux schwarz blume</a> <a href="http://www.sakuraudine.com/miami-dolphins-new-era-2017-nfl-kids-draft-9fifty-snapback-cap-hath">miami dolphins new era 2017 nfl kids draft 9fifty snapback cap</a> <a href="http://www.headlinebox.com/adidas-samba-suede-vert-chaussuresh">adidas samba suede vert</a> <a href="http://www.kitesurfapp.com/lila-velcro-converse-schuheh">lila velcro converse</a> <a href="http://www.elitgulsen.com/nike-mercurial-superfly-fg-high-tops-blue-black-yellow-shoesk">nike mercurial superfly fg high tops blue black yellow</a> <a href="http://www.riojacasa.com/air-jordan-1-retro-low-og-br%C3%B8d-skoj">air jordan 1 retro low og br酶d</a>
linnwoodpark http://www.linnwoodpark.com/
ayakkabiyeri
 ayakkabiyeri 2019-04-15 17:26回复
#167
<a href="http://www.delicouncil.com/menn-air-max-90-svart-gr%C3%B8nn-bl%C3%A5-obuvi">menn air max 90 svart gr酶nn bl氓</a> <a href="http://www.jeffaudette.com/nike-shox-nz-blanco-azul-zapatosl">nike shox nz blanco azul</a> <a href="http://www.ezappspro.com/ray-ban-clubmaster-sunglasses-sunglassesh">ray ban clubmaster sunglasses</a> <a href="http://www.susannekober.com/cleveland-cavaliers-winter-hat-hatj">cleveland cavaliers winter hat</a> <a href="http://www.kingsroomlv.com/2018-nike-air-max-air-max-2018-rosso-marina-militare-blu-scarpej">2018 nike air max air max 2018 rosso marina militare blu</a> <a href="http://www.sadecemerak.com/dam%C3%A4nner-nike-kyrie-4-wei%C3%9F-schuhei">dam盲nner nike kyrie 4 wei脽</a>
ayakkabiyeri http://www.ayakkabiyeri.com/
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸