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

Home » Imported messages » comp.lang.php » self-modifying program
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: self-modifying program [message #174368 is a reply to message #174352] Wed, 08 June 2011 21:41 Go to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On Tue, 07 Jun 2011 21:44:17 -0700, Jivanmukta wrote:

> Hello,
> I need your opinions about my solution. I have written a website
> containg twenty .php pages. I don't use any framework, but I use my
> libraries of functions and classes. These .php pages need a number of
> global constants, for example MySQL user and password or path to log
> file. I have these constants in secure/constants.php file, where
> "secure" is a folder available through SSL protocol

nonono

Put your secure folder somewhere outside of your servers document root, eg
if your web server document root is /var/htdocs, then create /var/secure
and use

require_once "/var/secure/globals.php";

in your php code.

No-one can access globals.php with an http request, because the web
server only gives access to files below /var/htdocs

Rgds

Denis McMahon
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: We wholesale Amazon Kindle/ Monster Beats / Ipods / Apple products of all types
Next Topic: [newbie] datetime issues
Goto Forum:
  

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

Current Time: Tue Nov 26 12:46:33 GMT 2024

Total time taken to generate the page: 0.04236 seconds