On Thu, Feb 09, 2006 at 09:55:57AM -0600, phil wrote:
In drupal the distributed .htaccess has the following:
# Override PHP settings. More exist in sites/default/settings.php, but # the following cannot be changed at runtime.
<IfModule sapi_apache2.c> php_value magic_quotes_gpc 0 php_value register_globals 0 php_value session.auto_start 0 </IfModule>
Wound something like that work here? I'd rather have RC decide how RC is going to work than have people go out and tweak their php.ini.
There are webservers that don't support .htaccess files, so those are not a solution. Even worse - many shared hosting webservers don't allow changing options in .htaccess files. In this case the user will get an error message from the apache when trying to call the pages.
This is why I already wrote about the .htaccess-files that are included by default in the distribution.
I don't see the reason for this discussion anyway. There is an easy fix for the problem and we can and probably should tell people to switch magic_quotes off - in the readme or install documentation, but not as a warning message.
Many people do not understand those warnings and think that they mean the program was coded badly and just uninstall it.
Balu
PS: Some days ago I wrote about an "administrative info" page that could check server capabilities and notify the admin why some features do not work, check directory rights, etc.. You could also check magic_quotes there and print a nice description what is "wrong" and how people might be able to fix that.