Re: [PHP] Re: ini files as config - hidden

2009-08-14 Thread Ashley Sheridan
On Fri, 2009-08-14 at 15:03 -0300, Martin Scotta wrote: > 2009/8/14 Ben Dunlap > > > 2009/8/14 João Cândido de Souza Neto : > > > I think a good solution is to put the ini file out of your html folder so > > > only your scripts can read it. > > > > I agree, and I try to do the same, but I've no

Re: [PHP] Re: ini files as config - hidden

2009-08-14 Thread Ben Dunlap
> 1) Name your ini files .php so, database.ini will be database.php Actually I was assuming the configuration file to be a PHP script -- as is typical in big open-source CMSes. I took "ini file" earlier in the thread to be a generic description of any file, whatever the extension, that contains se

Re: [PHP] Re: ini files as config - hidden

2009-08-14 Thread Jo�o C�ndido de Souza Neto
It´s a cool solution as well. "Martin Scotta" escreveu na mensagem news:6445d94e0908141103l6710c766wcc89f05111a65...@mail.gmail.com... 2009/8/14 Ben Dunlap > 2009/8/14 João Cândido de Souza Neto : > > I think a good solution is to put the ini file out of your html folder > > so > > only yo

Re: [PHP] Re: ini files as config - hidden

2009-08-14 Thread Jo�o C�ndido de Souza Neto
A long time ago I worked in many shared servers, nowadays I´m not working with web sites, only systems, so my customers always has their own server. The question is: 1) The ini file you mentioned has ini extension? if yes, it must be out of the document root because if someone types its ur

Re: [PHP] Re: ini files as config - hidden

2009-08-14 Thread Martin Scotta
2009/8/14 Ben Dunlap > 2009/8/14 João Cândido de Souza Neto : > > I think a good solution is to put the ini file out of your html folder so > > only your scripts can read it. > > I agree, and I try to do the same, but I've noticed that most > open-source CMSes I've looked at (Drupal, Joomla, Te

Re: [PHP] Re: ini files as config - hidden

2009-08-14 Thread Ben Dunlap
2009/8/14 João Cândido de Souza Neto : > I think a good solution is to put the ini file out of your html folder so > only your scripts can read it. I agree, and I try to do the same, but I've noticed that most open-source CMSes I've looked at (Drupal, Joomla, Textpattern, CMS Made Simple) have a