Login    Forum    Register    Search    FAQ

Board index » Web Hosting » Web-Design Support




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: php include file locations and security
 Post Posted: Fri Nov 06, 2009 11:44 pm 
Offline
Newbie
Newbie

Joined: Thu Oct 16, 2008 5:12 pm
Posts: 15
I've read that any php use of database passwords should be located in an include file that isn't in your web space directory.

Where should I put such an include file, and how should it be referenced within the calling php file (which is in my /var/www/html/ directory)?

Thanks


Top 
 Profile E-mail  
 
 Post subject: Re: php include file locations and security
 Post Posted: Tue Nov 10, 2009 12:41 pm 
Offline
Site Admin
Site Admin
User avatar

Joined: Sat Feb 09, 2002 11:09 am
Posts: 1155
Location: Penguin Internet Ltd
You can place such files in /home/admin (assuming that your hosting account username is admin) and the files can be referenced from there, as this is not accessible via a url


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 2 posts ] 

Board index » Web Hosting » Web-Design Support


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron