I had "heard" the same recommendation - store sensitive data outside
of the /www directory structure. So, I created a directory called
/includes right below my home page, e.g. - /home/xyz/includes. In my
program I placed the statement:
include("/home/xyz/includes/globals.php"); and this worked fine. My
website is running on paid server space.

Jim

--- In [email protected], "Bob" <[EMAIL PROTECTED]> wrote:
>
> Hi Patrick,
> I must have worded the question wrong, *grin*.
> 
> In all my books, it recommends storing sensitive data (DB 
> passwords etc) below root. I can access this by 
> "../../../test.php" depending on where I'm calling it from.
> 
> I thought there maybe a way to automate this, so it will 
> call correctly from whichever directory the calling page is in?
> 
> 
> ----- Original Message ----- 
> From: "Patrick Bierans" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Monday, December 12, 2005 8:44 AM
> Subject: Re: [php-list] Read a file below root
> 
> > Have you tried to start with a slash at start like "/test.php"?
> > Should point to root.
>







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/HKFolB/TM
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to