Include a PHP file in another PHP file

Posted by Shek on May 20, 2008 under PHP | Be the First to Comment

Most of the time, when we work with PHP and MySQL database, we have to write the PHP codes to connect to the MySQL database in many PHP files. It is very annoying to do so if there are too many PHP files which needs the 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 import into other PHP files.
Read more of this article »