Re: Seeking help with relative and absolute paths [message #180865 is a reply to message #180861] |
Fri, 22 March 2013 13:01   |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 3/22/2013 4:38 AM, The Frog wrote:
> 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.
>
> Cheers
>
> The frog
>
It's done quite often. Create a file such as config.inc.php, load it on
your system (preferably outside your document root, as I indicated
before). Include it where necessary.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|