Include a PHP file in another PHP file
Most of the time, when we have to work between PHP and MySQL database, we have to write the PHP codes for connecting to the MySQL database in many PHP files very often. It is very annoying to do so if there are too many PHP files which needs these codes. To make it easier, it is a good idea to put the PHP code for connecting to the MySQL database in a separate PHP file. And when any PHP file needs that segment of codes, it could use PHP function require_once () or require() to import the PHP file with codes. Continue Reading →

