Re: Include files
| From: | Larry E. Ullman | Date: | Wed, 26 Feb 2003 01:24:20 +0000 |
| Subject: | Re: Include files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137175@lists.php.net to get a copy of this message | ||
How do I include external library files in PHP??? I would like to put the lines that are repeated in each php files, in a separate file. e.g. <?php $db_host = "localhost"; $db_port = "3306"; $db_name = "test"; ... ?>I find the include() function to be quite useful for including external files. Check out the relevant pages of the "PHP Manual": www.php.net/include and www.php.net/include_once and www.php.net/require and www.php.net/require_once Larry