Suppose I have 2 file in
/home/project/etc/conf.php -> conf.php
/home/project/index.php -> index.php
Code: Select all
<?php
//conf.php
$mess="Done... Conf is coming from etc/conf.php";
?>Code: Select all
<?php
//index.php
include (conf.php); // Conf should call from etc/conf.php //
print $mess;
?>I have so many path define in conf.php.. So in each and every php file How can I include it ??