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


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to