[Phpmyadmin-devel] Re: DB-based configuration

Hi Robin & List!
Rather than support the old file format, I will ask a friend that does a lot of regex replacement strings if there is a perl s/// command we can use to convert the existing config file they have to the new format.
Tht's not a so good idea: preg is an optionnal module for php3, that's why we use only regexp in the whole code. Moreover I'm pretty sure it's a hardest work for the server to parse the file using regexp or preg than including a file with some basic tests and affectsations. Just my 2 cts. of Euro, Loïc ______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif

On Wed, 24 Apr 2002, Lo�c wrote:
Rather than support the old file format, I will ask a friend that does a lot of regex replacement strings if there is a perl s/// command we can use to convert the existing config file they have to the new format.
Tht's not a so good idea: preg is an optionnal module for php3, that's why we use only regexp in the whole code. Moreover I'm pretty sure it's a hardest work for the server to parse the file using regexp or preg than including a file with some basic tests and affectsations. I hadn't meant include it in the source, but rather just have a perl script in our scripts/directory for the people converting to the new version to use.
-- Robin Hugh Johnson E-Mail : robbat2@orbis-terrarum.net Home Page : http://www.orbis-terrarum.net/?l=people.robbat2 ICQ# : 30269588 or 41961639

On Wed, 24 Apr 2002, Robin Johnson wrote:
On Wed, 24 Apr 2002, Lo�c wrote:
Rather than support the old file format, I will ask a friend that does a lot of regex replacement strings if there is a perl s/// command we can use to convert the existing config file they have to the new format.
Tht's not a so good idea: preg is an optionnal module for php3, that's why we use only regexp in the whole code. Moreover I'm pretty sure it's a hardest work for the server to parse the file using regexp or preg than including a file with some basic tests and affectsations. I hadn't meant include it in the source, but rather just have a perl script in our scripts/directory for the people converting to the new version to use. Ok, I got whacked over the head by a Perl-promoting friend. For doing the $cfg conversion manually, and he showed me most of what I needed to write a script for it. Take a look at scripts/convertcfg.pl
Recommended usage: mv config.inc.php3 config.inc.php3.old scripts/convertcfg.pl <config.inc.php3.old >config.inc.php3 Possibly we should list that in the Documentation, for those who are upgrading? -- Robin Hugh Johnson E-Mail : robbat2@orbis-terrarum.net Home Page : http://www.orbis-terrarum.net/?l=people.robbat2 ICQ# : 30269588 or 41961639
participants (2)
-
Lo�c
-
Robin Johnson