How to use ini_set?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
amar
Forum Newbie
Posts: 1
Joined: Tue Jun 20, 2006 3:40 am

How to use ini_set?

Post 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 ??
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

Just like you have do - include() conf.php in each page.
Post Reply