Page 1 of 1

How to use ini_set?

Posted: Tue Jun 20, 2006 3:44 am
by amar
Can anyone tell me how can i use ini_set() function ??

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;
?>
So How can I do above thing through ini_set() ??

I have so many path define in conf.php.. So in each and every php file How can I include it ??

Posted: Tue Jun 20, 2006 6:58 am
by Grim...
Just like you have do - include() conf.php in each page.