Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!not-for-mail From: "M. Strobel" Newsgroups: comp.lang.php Subject: Re: Seeking help with relative and absolute paths Date: Fri, 22 Mar 2013 14:33:40 +0100 Lines: 16 Message-ID: References: <3a0aadc7-316f-46de-bb15-0347af57810d@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 9KqYNRv1NTMBqDCPC3TlfwaFeIasYRLD2p+lVQP44Bd8BwXZo= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 In-Reply-To: Xref: csiph.com comp.lang.php:8803 Am 22.03.2013 09:38, schrieb The Frog: > Thankyou once again Aho. I was hoping to avoid using sessions as the basis. I was > thinking more on the lines of a global constant that applies across the entire site. > Such as making available the logins etc for the backend DB. I don't know if this is > safe to do in PHP but I am hoping a more knowledgeable person might. > Like JS said. You normally have a config file that is included in every script. It should be outside of document root, or in a subdirectory where the web server has no access (security). But of course you have session variables as well, but for a different goal: to record the data of a particular user session. /Str.