Thanks Janson.

plaese write  step by step how to do to confugure apache.

remeber this. I work in Win32 system and PHp worh as CGI.

I have created .htaccess like this: 

php_value 
auto_prepend_file="C:OPENFEDRA\Apache\htdocs\fedra\sv\cfg\systemvariables.php"

and httpd.conf modify in this directives :
# 
# This controls which options the .htaccess files in directories can 
# override. Can also be "All", or any combination of "Options",
"FileInfo", 
# "AuthConfig", and "Limit" 
# 
    AllowOverride All 

But I have and error like this: 

 error.log: [Wed Dec 04 15:14:53 2002] [alert] [client 127.0.0.1]
c:/openfedra/apache/htdocs/.htaccess: Invalid command 'php_value', perhaps
mis-spelled or
defined by a module not included in the server configuration 

The .htaccess files it is under this folder C:\OPENFEDRA\apache\conf\

Please see other response that I have write ed I have explain my test.

Thanks. ciao Franco.


Jason Wong wrote:

> On Thursday 05 December 2002 00:33, 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:OPENFEDRAApachehtdocsfedrasvcfg"
> >
> > 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 =.

> Why could you not configure your php.ini?

> Other places where you can set auto_prepend_file is in httpd.conf or in a 
> ..htaccess 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'))

> You can't set the auto_prepend_file value at runtime -- auto_prepend has 
> (should have) already taken place by the time your script is run!




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

Reply via email to