From: Anton Gorlov <stalker@altlinux.ru> To: ALT Devel discussion list <devel@lists.altlinux.org> Subject: [devel] Вынос парметров настройки в отдельное место из php скрипта Date: Fri, 05 May 2006 17:32:15 +0400 Message-ID: <445B53DF.3060605@altlinux.ru> (raw) Есть некий скрипт на php, в котором ест ькакие-то настройки. есть желание вынести настрйоки в отдельный файл..подальше от чужих глаз. Пока видится такой вот метод: Из основного скрипты выдереам все парамтеры настройки и выносим их в какой-нибудь config.inc.php и на этот файл в последствии ставим более жёсткие права. В основной скрипт взамен ставим нечто вроде f (file_exists('config.inc.php')) { require('conf/config.inc.php'); } else { echo "Configuration Error"; exit; } Вопрос в том - на сколько это правильно... и в том куда наиболе правильно положить этот сам config.inc.php? Думается или в /etc (хотя сомнительно.. бо на самом деле он не конфиг..а часть скрипта) или рядом в conf/ и затянуть права потуже? -- np: silence
next reply other threads:[~2006-05-05 13:32 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-05-05 13:32 Anton Gorlov [this message] 2006-05-05 15:31 ` Nick S. Grechukh 2006-05-05 13:54 ` Anton Gorlov 2006-05-05 16:02 ` Nick S. Grechukh 2006-05-05 14:12 ` Anton Gorlov 2006-05-05 16:15 ` Nick S. Grechukh
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=445B53DF.3060605@altlinux.ru \ --to=stalker@altlinux.ru \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git