Forum Moderators: phranque

Message Too Old, No Replies

PHP_flags in .htaccess

Allowing users to use PHP_flags in their .htaccess

         

jlimited

4:13 pm on Oct 24, 2004 (gmt 0)

10+ Year Member



Hello,

I am not sure if this is the right forum for this, but maybe you can point in the right direction.

I recently switched servers...One of my users had PHP_flags in his .htaccess file. At the time I did not know that. My old server supported this, my new server does not.

How can I make this work?

Thanks
Jlimited

coopster

6:06 pm on Oct 24, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, jlimited.

If your new server does not support per-directory overrides (.htaccess) and you aren't allowed (likely the case) to modify the configuration files such as httpd.conf then the only alternative is to see if ini_set() [php.net] is going to work and call that on every PHP page.

Not being able to modify certain configuration directives is probably going to be a nuisance down the road though. Maybe another host is worth your time and money?

jlimited

6:23 pm on Oct 24, 2004 (gmt 0)

10+ Year Member



I have control over the http.d config file. As well as the php.ini file. I am the web host and until yesterday, I thought everything was working fine.

Where would I find information on the mods i need to make so that my users can place php_flags in thier .htaccess file?

Thanks
Jlimited

coopster

2:34 am on Oct 25, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Have a look at the Apache AccessFileName [httpd.apache.org] configuration directive to get you started.