FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
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
Connectez-vous…
Josh
#1
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?
Signaler
0
0
Fabrice Harari
#2
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?
Signaler
0
0
→ Revenir à WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte