Thanks Philip for the response. I can to write in step by step for to explain well my situation.
1. my application work fine in Win32 system but I must to executed it also in Linux and Mac env. It is possible. In Win32 in many case, I do not have Apache and PHP install. It is possible to have other web_server like IIS (Win32). The conflict with my application are only for the TCP IP Port. In Win32 system I can install Apache and PHP with same component of the application without are invasive because *all* object (module apache + module php + script php + XML files and so on ) are under my folder like C:\OPENFEDRA\apache\htdocs... or C:\OPENFEDRA\php\extensions........etc.... In the Linux system the distribution have Apache and PHP installed as for default. I do not want to install Apache and PHP and I do not wnat to are invasive in this env because it is possible that Apache and PHp are used to worh with others application of the User's. For this reson I think it is better to modify dinamically the php.ini directives from my scripts PHP. In this way my application can work in the other web_server like IIS but if it is PHP interpreted installed. 2. I have use include_once() function at the init of the project. But in the next time, I have think that it is a good way to write my script PHP witout to re-call in any script this function. I have discovered the auto_prepend_files directive of the php.ini and it is a good way instead to use in any script include_once() or require_once(). One other thing; I think that auto_prepend_file have a good peformance insted of the include or require. 3. I have tried to use also the directives of Apache creating a file .htaccess that he contains the directive of php.ini like this: php_value auto_prepend_file "C:/OPENFEDRA/Apache/htdocs/fedra/sv/cfg/systemVariables.php" and without modify my script PHP. But I have not understood where to put these file and then putting the directive of Apache AllowOverride to the All value I have a InternalServer error. Also on this you can help me? Ciao e grazie Franco. Philip Olson wrote: > Reread the docs here (the table): > > http://www.php.net/ini_set > > You cannot set this directive at runtime. Using .htaccess > is as close as you'll get to that. I see no reason why > using auto_prepend_file here would be better than include() > as this is exactly what include() is for. > > Regards, > Philip > > On 4 Dec 2002, Franco Pozzer wrote: > > > Thanks for all. > > > > My end it is Apache 1.3.27 and PHP 4.3.2 in Win32 system NT 4.0. > > > > I have the php.ini auto_prepend_file like this: > > auto_prepend_file="C:\OPENFEDRA\Apache\htdocs\fedra\sv\cfg\" > > > > All work fine with this configuration of the php.ini. > > > > For same reason I must to do not configure php.ini and the directives > > auto_prepend_file must be null like auto_prepend_file =. > > > > I have discovered ini_alter function but I do not be able to work in my > > application. > > > > My script it is like: > > <? > > $path="C:\\OPENFEDRA\\Apache\\htdocs\\fedra\\sv\\cfg\\"; > > > > echo"<br>$path<br>"; > > > > if(ini_alter('auto_prepend_file', $path.'systemVariables.php')) > > echo "<br>ini_alter success<br>"; > > else > > echo "<br>ini_alter failed<br>"; > > > > but do not work. > > > > If I change the ini_alter with include() it work all fine but I do not > > want to use include or require function. > > > > have sameone an idea about this code do not work?? > > > > Thanks for all and if it is possible reply to me also to e-mail follow. > > > > [EMAIL PROTECTED] > > www.infocamere.it > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php