Re: [PHP] Using php_value in .htaccess files

2004-08-24 Thread Neil Freeman
[EMAIL PROTECTED] wrote:
***
This Email Has Been Virus Swept
***
Is there anything special one has to do in order to enable the use of the php_value 
directive in the context of an apache .htaccess file?
I notice that on some hosts I can drop in something like:
php_value auto_prepend_file groove.php
with impunity. Other hosts, it causes Apache to generate an internal
server error. 

-Weston
Although this may not be your problem it's always a good idea to test 
for the existence of the module before attempting to change any of it's 
values:

IfModule mod_php5.c
php_value auto_prepend_file groove.php
/IfModule
Neil
This communication is confidential to the intended recipient(s). If you are not 
that person you are not permitted to make use of the information and you are requested 
to notify the sender immediately of its receipt then destroy the copy in your 
possession. Any views or opinions expressed are those of the originator and may not 
represent those of Advanced System Architectures Ltd.
*** This Email Has Been Virus Checked ***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Using php_value in .htaccess files

2004-08-23 Thread weston
Is there anything special one has to do in order to enable the use of the php_value 
directive in the context of an apache .htaccess file?

I notice that on some hosts I can drop in something like:

php_value auto_prepend_file groove.php

with impunity. Other hosts, it causes Apache to generate an internal
server error. 

-Weston

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



Re: [PHP] Using php_value in .htaccess files

2004-08-23 Thread Michal Migurski
 Is there anything special one has to do in order to enable the use of
 the php_value directive in the context of an apache .htaccess file?

 I notice that on some hosts I can drop in something like:

   php_value auto_prepend_file groove.php

 with impunity. Other hosts, it causes Apache to generate an internal
 server error.

I believe Apache's Allowoverride directive must have Options or
+Options set for php_value changes to be permitted on a per-directory
basis in .htaccess files.

Allowoverride All is one way to make sure they're permitted. :D

-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html

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



Re: [PHP] Using php_value in .htaccess files

2004-08-23 Thread weston
 I believe Apache's Allowoverride directive must have Options or
 +Options set for php_value changes to be permitted on a per-directory
 basis in .htaccess files.
 
 Allowoverride All is one way to make sure they're permitted. :D

So... if I throw an override all in the .htaccess file I'm set? ;)

But seriously... on the particular server I'm wondering about right 
now, I can use the directive:

AddHandler server-parsed .html .htm

So using .htaccess files themselves is apparently OK on this one. 
It's when I throw in the php_value statement that things blow up
any ideas why?

-Weston

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



Re: [PHP] Using php_value in .htaccess files

2004-08-23 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED]:
  I believe Apache's Allowoverride directive must have Options or
  +Options set for php_value changes to be permitted on a per-directory
  basis in .htaccess files.
  
  Allowoverride All is one way to make sure they're permitted. :D
 
 So... if I throw an override all in the .htaccess file I'm set? ;)
 
 ...
 So using .htaccess files themselves is apparently OK on this one. 
 It's when I throw in the php_value statement that things blow up
 any ideas why?

Seek the apache error_log, it will tell you exactly why the 500
occurse. 



Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

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