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

迷津渡口

越感到迷惑 越接近真理

php修改include_path

使用模板和框架时,一劳永逸的方法是把它们加入include_path。

以smarty为例,到网上下载模板包,解压后将libs下面的所有文件移动到新建文件夹smarty里面。

然后移动到一个自己喜欢的php共享路径,例如/usr/share/php。

最后到php配置目录例如/etc/php5/conf.d下面新建一个smarty.ini

内容为:

[smarty]
include_path=${include_path} ":/usr/share/php/smarty"

修改后保存。

可以看到此时/usr/share/php/smarty下的目录结构为:

smarty
├── Config_File.class.php
├── debug.tpl
├── internals
├── libs -> .
├── plugins
├── Smarty.class.php
└── Smarty_Compiler.class.php

使用方法,相当于以include_path为当前路径加入:

require_once "Smarty.class.php";


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

清空信息
关闭评论
thegillssell
 thegillssell 2019-03-18 02:38回复
#124
<a href="http://www.sousoushop.com/femminile-nike-free-tr-verde-scarpeh">femminile nike free tr verde</a> <a href="http://www.rcfitcamp.com/brixton-ollie-cap-hath">brixton ollie cap</a> <a href="http://www.milajerdchat.com/nike-air-max-tailwind-6-gris-violet-chaussuresh">nike air max tailwind 6 gris violet</a> <a href="http://www.girisweb.com/femmes-nike-air-max-tailwind-6-tout-gris-chaussuresj">femmes nike air max tailwind 6 tout gris</a> <a href="http://www.abcmovieplot.com/air-jordan-retro-14-dam%C3%A4nner-gelb-grau-schuhej">air jordan retro 14 dam盲nner gelb grau</a> <a href="http://www.oldhalliwell.com/kvinders-nike-kobe-9-low-guld-lyser%C3%B8d-skop">kvinders nike kobe 9 low guld lyser酶d</a>
thegillssell http://www.thegillssell.com/
kendalfewster
 kendalfewster 2019-03-17 01:38回复
#123
<a href="http://www.atrapaniapp.com/femmes-nike-kyrie-2-blanc-jaune-chaussuresh">femmes nike kyrie 2 blanc jaune</a> <a href="http://www.maplebeyond.com/nike-kd-8-femminile-viola-rosso-scarpeq">nike kd 8 femminile viola rosso</a> <a href="http://www.collisionsix.com/mens-nike-air-max-87-sb-green-grey-shoesj">mens nike air max 87 sb green grey</a> <a href="http://www.todololitas.com/nike-kobe-vii-wolf-gr%C3%A5-skoi">nike kobe vii wolf gr氓</a> <a href="http://www.jcwjrlaw.com/nike-flyknit-lunar-3-femminile-oro-grigio-scarpel">nike flyknit lunar 3 femminile oro grigio</a> <a href="http://www.vstsblog.com/mens-asics-gel-noosa-tri-7-silver-blue-shoesj">mens asics gel noosa tri 7 silver blue</a>
kendalfewster http://www.kendalfewster.com/
groupontatil
 groupontatil 2019-03-17 01:10回复
#122
<a href="http://www.gccqueens.com/nike-air-max-95-bleu-rouge-butye">nike air max 95 bleu rouge</a> <a href="http://www.diumsolution.com/mujeres-nike-free-tr-fit-rojo-blanco-kurpesc">mujeres nike free tr fit rojo blanco</a> <a href="http://www.daybel.com/nike-lebron-ambassador-9-grau-himmelblau-butya">nike lebron ambassador 9 grau himmelblau</a> <a href="http://www.marybethyates.com/adidas-springblade-sort-and-hvid-stripes-schuheg">adidas springblade sort and hvid stripes</a> <a href="http://www.jaskcsun.com/kobe-venom%C3%A4nneron-5-university-gold-card-butyf">kobe venom盲nneron 5 university gold card</a> <a href="http://www.maromina.com/yeezy-350-boost-bianca-and-nero-butya">yeezy 350 boost bianca and nero</a>
groupontatil http://www.groupontatil.com/
eonkraftwerke
 eonkraftwerke 2019-03-16 20:22回复
#121
<a href="http://www.inboundhead.com/adidas-neo-mesh-marrone-oro-butyd">adidas neo mesh marrone oro</a> <a href="http://www.rxhealthforca.com/nike-roshe-run-blum%C3%A4nner-print-obuvg">nike roshe run blum盲nner print</a> <a href="http://www.servistylo.com/air-jordan-retro-6-bambini-gituttio-kurpesa">air jordan retro 6 bambini gituttio</a> <a href="http://www.wedocounters.com/adidas-neo-leder-blau-silber-kurpesf">adidas neo leder blau silber</a> <a href="http://www.acebelfast.com/ralph-lauren-match-polo-p%C3%BArpura-negro-poloz">ralph lauren match polo p煤rpura negro</a> <a href="http://www.airistontili.com/jordan-retro-11-cool-grau-pre-order-scarpec">jordan retro 11 cool grau pre order</a>
eonkraftwerke http://www.eonkraftwerke.com/
poppiesdelray
 poppiesdelray 2019-03-16 06:02回复
#120
<a href="http://www.poppiesdelray.com/nike-shox-deliver-herren-wei%C3%9F-marine-rot-schuhej">nike shox deliver herren wei脽 marine rot</a> <a href="http://www.soundsofbuzz.com/herren-nike-air-max-tailwind-8-gold-schwarz-schuhei">herren nike air max tailwind 8 gold schwarz</a> <a href="http://www.hozloli.com/menn-nike-air-max-87-sb-svart-gr%C3%A5-gr%C3%B8nn-obuvj">menn nike air max 87 sb svart gr氓 gr酶nn</a> <a href="http://www.privetaustria.com/adidas-neo-mesh-dark-blu-bianca-scarpel">adidas neo mesh dark blu bianca</a> <a href="http://www.goodnnasty.com/hommes-adidas-zx-flux-ocean-waves-chaussuresh">hommes adidas zx flux ocean waves</a> <a href="http://www.ankarasanal.com/nike-sb-blazer-low-blu-scarpeh">nike sb blazer low blu</a>
poppiesdelray http://www.poppiesdelray.com/
kennyrager
 kennyrager 2019-03-15 22:20回复
#119
<a href="http://www.coderfinca.com/nike-air-max-thea-jacquard-kvinders-sko-holder-chaussurese">nike air max thea jacquard kvinders sko holder</a> <a href="http://www.deedeephelps.com/nike-hyperdunk-2015-flyknit-low-wei%C3%9F-gold-butyg">nike hyperdunk 2015 flyknit low wei脽 gold</a> <a href="http://www.domcilios.com/maschio-nike-roshe-run-high-blu-bianca-scarpea">maschio nike roshe run high blu bianca</a> <a href="http://www.hartsigsupply.com/adidas-zx-flux-rich-bl%C3%A5-schuhec">adidas zx flux rich bl氓</a> <a href="http://www.iptvpackage.com/nike-air-max-95-metallic-gull-xd-butyf">nike air max 95 metallic gull xd</a> <a href="http://www.nishajagmohan.com/ua-clutchfit-prodigy-all-gull-butyf">ua clutchfit prodigy all gull</a>
kennyrager http://www.kennyrager.com/
ghostcheckers
 ghostcheckers 2019-03-15 09:44回复
#118
<a href="http://www.eobvas.com/nike-shox-gris-and-amarillo-scarpef">nike shox gris and amarillo</a> <a href="http://www.fxbases.com/nike-free-run-4.0-v3-hombres-zapatos-breathable-negro-guy-kurpesa">nike free run 4.0 v3 hombres zapatos breathable negro guy</a> <a href="http://www.affairday.com/air-jordan-future-lilla-oransje-schuhed">air jordan future lilla oransje</a> <a href="http://www.bedayatak.com/nike-air-force-1-mid-sort-wolf-gr%C3%A5-kurpesb">nike air force 1 mid sort wolf gr氓</a> <a href="http://www.bisorum.com/air-jordan-5-blu-argento-kurpesa">air jordan 5 blu argento</a> <a href="http://www.cbdpharmies.com/nike-air-max-2016-gris-vert-inferno-obuvb">nike air max 2016 gris vert inferno</a>
ghostcheckers http://www.ghostcheckers.com/
classmedya
 classmedya 2019-03-13 03:39回复
#117
<a href="http://www.ptsbarwinslow.com/converse-shoreline-slip-on-wei%C3%9F-schuhei">converse shoreline slip on wei脽</a> <a href="http://www.sarhallafk.com/nike-flyknit-racer-hvid-sort-1-skoh">nike flyknit racer hvid sort 1</a> <a href="http://www.philippikus.com/adrian-beltre-authentic-jersey-nfli">adrian beltre authentic jersey</a> <a href="http://www.pngoilgas.com/nike-free-socfly-triple-svart-highsnobiety-obuvk">nike free socfly triple svart highsnobiety</a> <a href="http://www.goficarwash.com/coach-small-kelsey-satchel-coachh">coach small kelsey satchel</a> <a href="http://www.getairtijuana.com/nike-air-max-nero-floreale-scarpej">nike air max nero floreale</a>
classmedya http://www.classmedya.com/
shetablink
 shetablink 2019-03-12 18:17回复
#116
<a href="http://www.unefinemouche.com/nike-air-max-lunar-1-mujeres-gris-blanco-zapatosk">nike air max lunar 1 mujeres gris blanco</a> <a href="http://www.ayuinc.com/hombres-nike-shox-turbo-21-amarillo-azul-zapatosp">hombres nike shox turbo 21 amarillo azul</a> <a href="http://www.unirlisboa.com/the-north-face-inlux-insulated-jacket-review-northfaceh">the north face inlux insulated jacket review</a> <a href="http://www.escortfeeds.com/dam%C3%A4nner-asics-gel-kinsei-4-himmelblau-blau-schuhej">dam盲nner asics gel kinsei 4 himmelblau blau</a> <a href="http://www.rdjanitorial.com/air-jordan-retro-4-kvinders-mintgr%C3%B8n-appelsin-skoh">air jordan retro 4 kvinders mintgr酶n appelsin</a> <a href="http://www.bookoobeats.com/adidas-springblade-pro-jaune-vert-chaussuresh">adidas springblade pro jaune vert</a>
shetablink http://www.shetablink.com/
newscenefiles
 newscenefiles 2019-03-12 07:32回复
#115
<a href="http://www.hoosierbbqcup.net/air-jordan-3-ls-cool-grigio-obuvc">air jordan 3 ls cool grigio</a> <a href="http://www.hotvapes.net/maschio-air-max-90-sneakerboot-tutti-oro-kurpese">maschio air max 90 sneakerboot tutti oro</a> <a href="http://www.hundsport.net/nike-internationalist-nero-femminile-yelp-kurpesa">nike internationalist nero femminile yelp</a> <a href="http://www.idahoxrocks.net/asics-gel-kayano-21-blanc-marron-chaussuresb">asics gel kayano 21 blanc marron</a> <a href="http://www.ihmrutland.net/nike-wmns-free-tr-fit-5.0-r%C3%B8d-oransje-obuve">nike wmns free tr fit 5.0 r酶d oransje</a> <a href="http://www.ilovemarseille.net/nike-mercurial-vapor-viola-blu-chaussuresa">nike mercurial vapor viola blu</a>
newscenefiles http://www.newscenefiles.net/
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸