RE: [PHP] Include files
| From: | John W. Holmes | Date: | Wed, 26 Feb 2003 01:15:42 +0000 |
| Subject: | RE: [PHP] Include files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137170@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";
> ...
> ?>
Just throw caution to the wind and try the include() function!!!! I'm
not responsible for the consequences!!! Do not blame me if your file is
included!!
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/