好!欢迎访问迷津渡口 现在时间是: 天气 °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
   支持一下
挤眼 亲亲 咆哮 开心 想想 可怜 糗大了 委屈 哈哈 小声点 右哼哼 左哼哼 疑问 坏笑 赚钱啦 悲伤 耍酷 勾引 厉害 握手 耶 嘻嘻 害羞 鼓掌 馋嘴 抓狂 抱抱 围观 威武 给力
 点赞
 签到
 表情
 图片
 代码
提交评论

清空信息
关闭评论
aldervets
 aldervets 约 7 小时前回复
#78
<a href="http://www.truthtapes.com/nike-zoom-pegasus-33-p%C3%BArpura-zapatosk">nike zoom pegasus 33 p煤rpura</a> <a href="http://www.veskopetrov.com/womens-nike-kd-7-grey-green-shoesi">womens nike kd 7 grey green</a> <a href="http://www.kaosmotogp.com/nike-sb-dunk-iguana-schwarz-schuhei">nike sb dunk iguana schwarz</a> <a href="http://www.doularhythms.com/mujeres-air-jordan-4-amarillo-zapatosp">mujeres air jordan 4 amarillo</a> <a href="http://www.animalpainvet.com/under-armour-curry-one-bl%C3%A5-gr%C3%A5-skoi">under armour curry one bl氓 gr氓</a> <a href="http://www.texarillo.com/nike-roshe-run-speckle-kvinners-oransje-obuvq">nike roshe run speckle kvinners oransje</a>
aldervets http://www.aldervets.com/
profancyshop
 profancyshop 2019-02-15 18:01回复
#77
<a href="http://www.hinogi.com/mujeres-asics-gel-hyper-33-amarillo-verde-zapatosk">mujeres asics gel hyper 33 amarillo verde</a> <a href="http://www.prontosignsus.com/nike-lunarlon-gris-amarillo-zapatosp">nike lunarlon gris amarillo</a> <a href="http://www.ticahome.com/north-face-half-dome-full-zip-hoodie-mens-northfaceh">north face half dome full zip hoodie mens</a> <a href="http://www.prformusic.com/nike-lunarglide-6-himmelblau-wei%C3%9F-schuhej">nike lunarglide 6 himmelblau wei脽</a> <a href="http://www.tatilblogu.com/kvinders-nike-flyknit-lunar-1-lilla-gr%C3%A5-skoh">kvinders nike flyknit lunar 1 lilla gr氓</a> <a href="http://www.danieladirosa.com/hommes-nike-lunarglide-6-gris-vert-chaussuresh">hommes nike lunarglide 6 gris vert</a>
profancyshop http://www.profancyshop.com/
fnjcompressor
 fnjcompressor 2019-02-13 21:00回复
#76
<a href="http://www.freizeittrend.com/womens-nike-buffalo-bills-66-russell-bodine-limited-pink-rush-fashion-nfl-jersey-nflw">womens nike buffalo bills 66 russell bodine limited pink rush fashion nfl jersey</a> <a href="http://www.instanalo.com/detroit-lions-jason-hanson-jersey-nflv">detroit lions jason hanson jersey</a> <a href="http://www.olafhuth.com/jordan-5-fire-red-oreo-5-skog">jordan 5 fire red oreo 5</a> <a href="http://www.pecanfirewood.com/nike-air-max-tn-ultra-kvinders-lyser%C3%B8d-skob">nike air max tn ultra kvinders lyser酶d</a> <a href="http://www.ezzolawaz.com/pittsburgh-pirates-fedora-hat-history-kansas-city-hata">pittsburgh pirates fedora hat history kansas city</a> <a href="http://www.suchmeldungen.com/nike-air-max-90-colorful-sneakerboot-runningf">nike air max 90 colorful sneakerboot</a>
fnjcompressor http://www.fnjcompressor.com/
chainoffshore
 chainoffshore 2019-02-12 20:07回复
#75
<a href="http://www.arcadetogo.com/mulberry-bayswater-light-tan-bag-number-mulberrye">mulberry bayswater light tan bag number</a> <a href="http://www.ebinsaat.com/air-jordan-retro-3-dam%C3%A4nner-lila-trainersd">air jordan retro 3 dam盲nner lila</a> <a href="http://www.gracalor.com/canada-goose-chilliwack-bomber-ebay-canadagooser">canada goose chilliwack bomber ebay</a> <a href="http://www.blockchainmkt.com/burberry-scarf-tying-on-head-scarfa">burberry scarf tying on head</a> <a href="http://www.danaperth.com/prada-messenger-bag-nylon-hamburg-pradad">prada messenger bag nylon hamburg</a> <a href="http://www.ebooksandme.com/nike-mercurial-superfly-iv-price-skor">nike mercurial superfly iv price</a>
chainoffshore http://www.chainoffshore.com/
maplebeyond
 maplebeyond 2019-02-12 18:56回复
#74
<a href="http://www.theislandbody.com/womens-nike-roshe-run-high-grey-shoesi">womens nike roshe run high grey</a> <a href="http://www.zululeads.com/nike-kobe-9-mid-alle-gelb-schuhei">nike kobe 9 mid alle gelb</a> <a href="http://www.notmyrichie.com/mujeres-nike-air-max-95-oro-p%C3%BArpura-zapatosk">mujeres nike air max 95 oro p煤rpura</a> <a href="http://www.mintyschoice.com/air-jordan-retro-7-lilla-skoi">air jordan retro 7 lilla</a> <a href="http://www.mamapjblog.com/nike-roshe-run-kvinners-sko-blomst-svart-obuvl">nike roshe run kvinners sko blomst svart</a> <a href="http://www.pdfunicorn.com/nike-zoom-pegasus-31-womens-yellow-red-shoesh">nike zoom pegasus 31 womens yellow red</a>
maplebeyond http://www.maplebeyond.com/
marinersdiary
 marinersdiary 2019-02-11 16:04回复
#73
<a href="http://www.adanastarpen.com/maschio-nike-free-tr-fit-gituttio-grigio-scarpeh">maschio nike free tr fit gituttio grigio</a> <a href="http://www.actconfident.com/air-jordan-retro-12-femmes-jaune-rouge-chaussuresp">air jordan retro 12 femmes jaune rouge</a> <a href="http://www.erzurumihl.com/north-face-womens-hyvent-dt-jacket-northfaceh">north face womens hyvent dt jacket</a> <a href="http://www.candctowingil.com/nike-lunarglide-7-rot-wei%C3%9F-schuheq">nike lunarglide 7 rot wei脽</a> <a href="http://www.onlysidekick.com/nike-kobe-5-vert-noir-chaussuresl">nike kobe 5 vert noir</a> <a href="http://www.rmmassage.com/mujeres-nike-roshe-run-blanco-zapatosq">mujeres nike roshe run blanco</a>
marinersdiary http://www.marinersdiary.com/
radiomasweb
 radiomasweb 2019-02-11 15:39回复
#72
<a href="http://www.placedumusee.com/adidas-zx-700-fox-rojo-and-azul-obuvg">adidas zx 700 fox rojo and azul</a> <a href="http://www.prismbuffalo.com/air-jordan-3-infrarosso-23-nike-chaussuresa">air jordan 3 infrarosso 23 nike</a> <a href="http://www.surlion.com/nike-free-5.0-2014-sort-gr%C3%B8n-butya">nike free 5.0 2014 sort gr酶n</a> <a href="http://www.tokodanaya.com/lebron-soldier-10-vino-and-oro-jewelry-obuvd">lebron soldier 10 vino and oro jewelry</a> <a href="http://www.damimiyy.com/air-jordan-5-rojo-p%C3%BArpura-scarpea">air jordan 5 rojo p煤rpura</a> <a href="http://www.dinerwareoc.com/kobe-vi-nero-mamba-scarpef">kobe vi nero mamba</a>
radiomasweb http://www.radiomasweb.com/
pampressions
 pampressions 2019-02-09 06:32回复
#71
<a href="http://www.bcashed.com/nfl-womens-nike-pittsburgh-steelers-36-jerome-bettis-black-name-number-logo-pullover-hoodie-nflx">nfl womens nike pittsburgh steelers 36 jerome bettis black name number logo pullover hoodie</a> <a href="http://www.floraanafcheh.com/svart-on-svart-suede-nike-cortez-kurpesc">svart on svart suede nike cortez</a> <a href="http://www.kinkfresno.com/womens-nike-indianapolis-colts-31-quincy-wilson-limited-royal-blue-rush-vapor-untouchable-nfl-jersey-nflx">womens nike indianapolis colts 31 quincy wilson limited royal blue rush vapor untouchable nfl jersey</a> <a href="http://www.modconsol.com/nike-air-jordan-13-retro-herre-sko-deals-obuve">nike air jordan 13 retro herre sko deals</a> <a href="http://www.portlandsarl.com/nike-zoom-winflo-2-r%C3%B8d-line-scarpec">nike zoom winflo 2 r酶d line</a> <a href="http://www.sandyshands.com/kvinners-nike-air-max-tailwind-5-gul-rosa-kurpesb">kvinners nike air max tailwind 5 gul rosa</a>
pampressions http://www.pampressions.com/
yurasmirnov
 yurasmirnov 2019-02-08 16:39回复
#70
<a href="http://www.koreazp.com/asics-onitsuka-tiger-mexico-66-wei%C3%9F-blau-schuhel">asics onitsuka tiger mexico 66 wei脽 blau</a> <a href="http://www.hiltonskyshop.com/nike-air-max-2017-deep-royal-bleu-chaussuresq">nike air max 2017 deep royal bleu</a> <a href="http://www.lavaforchange.com/mujeres-nike-free-tr-fit-p%C3%BArpura-naranja-zapatosl">mujeres nike free tr fit p煤rpura naranja</a> <a href="http://www.lifeonfilms.com/air-jordan-retro-6-br%C3%B8d-skoj">air jordan retro 6 br酶d</a> <a href="http://www.midlandroofer.com/mennns-asics-gel-hyper-33-hvit-svart-obuvi">mennns asics gel hyper 33 hvit svart</a> <a href="http://www.pearsonchool.com/adidas-neo-suede-naranja-zapatosp">adidas neo suede naranja</a>
[url=http://www.yurasmirnov.com/]yurasmirnov[/url]
gopinksoccer
 gopinksoccer 2019-02-06 08:21回复
#69
<a href="http://www.cakeeaterspgh.com/kvinners-asics-gel-noosa-tri-9-s%C3%B8lv-obuvd">kvinners asics gel noosa tri 9 s酶lv</a> <a href="http://www.itlooksohot.com/air-jordan-5-retro-low-alternate-90-for-vente-scarpec">air jordan 5 retro low alternate 90 for vente</a> <a href="http://www.naijareward.com/hombres-nike-free-run-5.0-todas-p%C3%BArpura-kurpesb">hombres nike free run 5.0 todas p煤rpura</a> <a href="http://www.nhadatmoivn.com/anthony-barr-mens-limited-purple-jersey-nike-nfl-minnesota-vikings-strobe-55-nflr">anthony barr mens limited purple jersey nike nfl minnesota vikings strobe 55</a> <a href="http://www.piernowedding.com/air-jordan-3-carolina-bl%C3%A5-butyf">air jordan 3 carolina bl氓</a> <a href="http://www.storagelayout.com/mens-nike-pittsburgh-steelers-84-antonio-brown-game-white-nfl-jersey-nflx">mens nike pittsburgh steelers 84 antonio brown game white nfl jersey</a>
gopinksoccer http://www.gopinksoccer.com/
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸