PHPMaker 2022: Get DB Name in Custom File

This course will teach you how to get database (DB) name in a Custom File.

Sometimes, we need to get information that related to the database connection, such as host name, database name, username, password, port, and so forth.

We actually can achieve this result by using the following simple code:

var_dump(Config("Databases"));

Unfortunately, this cannot be always be used, since PHPMaker provides a Database_Connecting server event that will have the ability to override the database connection from that code above.

The question is, how can we get the database connection info from that Database_Connecting server event instead of database configuration?

Course Information

Course Instructor

Masino Sinaga Masino Sinaga Author

All Courses Lifetime

FREE

Pay USD 450, you will get access to all courses lifetime.

This Course Lifetime

$10.00

Pay USD 10, you will get access to this course lifetime.

All Courses Subscription

$150.00
per year for 1 total payments
1 year of access

Pay USD 150, you will get access to all courses for one year. After one year, you will have to pay USD 150 for next one year access to all courses.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.