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 Instructor
All Courses Lifetime
Pay USD 450, you will get access to all courses lifetime.
This Course Lifetime
Pay USD 10, you will get access to this course lifetime.
All Courses Subscription
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.