PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WEBDEV 2024
→
Specifying database properties in config.php
Specifying database properties in config.php
Started by Josh, Jul., 03 2017 11:47 AM - 1 reply
Connect yourself…
Josh
#1
Posted on July, 03 2017 - 11:47 AM
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?
Report
0
0
Fabrice Harari
#2
Posted on July, 03 2017 - 1:55 PM
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?
Report
0
0
→ Go back to WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text