FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » php includes in readable directory
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
php includes in readable directory [message #181832] Sun, 09 June 2013 09:39 Go to previous message
John Anderson is currently offline  John Anderson
Messages: 2
Registered: June 2013
Karma:
Junior Member
Hello,
I've got a website where the apache directory is available to other
users with shell accounts: /var/www/html.

If I put something like 'db_login.php' in there with a MySQL password in
it, and include it from index.php, then anyone with shell access will be
able to read it.

So I move it out, but where? Is there a 'standard' place to put stuff
like this? /usr/local seems too 'root-like', and I don't really want to
put it into my $HOME, and give httpd the right to see in there.

Thanks.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: There is no more attempt to draw the mind of children
Next Topic: Re: Using Crystal Reports with PHP
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 21 17:22:05 GMT 2024

Total time taken to generate the page: 0.04399 seconds