PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → Specifying database properties in config.php
Specifying database properties in config.php
Débuté par Josh, 03 juil. 2017 11:47 - 1 réponse
Posté le 03 juillet 2017 - 11:47
I'm looking to use WEBDEV to make a PHP web-app that would be distributed to users to host themselves with different database types (e.g. MariaDB, MS SQL, SQLite).

Does WEBDEV support allowing these sorts of settings to be configured by the user themselves, say in a config.php type file as is used by many other self-hosted PHP web apps?
Posté le 03 juillet 2017 - 13:55
Hi Josh

I don't know how it's done in php (and I NEVER use that mode in webdev)...

However, the wlanguage offers all the necessary functions to do that
(hchangeconnexion, to start with) and I personnaly just write the
information needed in an ini file in the site directory.

Be careful with the password information, in that case (if it's there,
for me, it's encrypted)

So you can easily create a setup page where your user can enter all this
information and where you can write in the ini file in question, then
use it to connect.

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com

Le 7/3/2017 à 3:47 AM, Josh a écrit :
I'm looking to use WEBDEV to make a PHP web-app that would be
distributed to users to host themselves with different database types
(e.g. MariaDB, MS SQL, SQLite).

Does WEBDEV support allowing these sorts of settings to be configured by
the user themselves, say in a config.php type file as is used by many
other self-hosted PHP web apps?