Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By familygamecube@yahoo.com on
Hi,
I'm trying to set up Drupal 4.1 on a Win2k shared host. So far it has gone surprisingly well, considering my lack of PHP experience (especially running under IIS). One problem, though. index.php pops a warning because magic_quotes_gpc is set to "1" on my host's PHP.INI file.
Is there a way I could possibly code arround this? Or, would changing this setting in the PHP.INI file be something a hosting company would object to doing on a shared server?
Any help would be greatly appreciated.
Thanks!
Comments
magic_quotes_gpc
you can turn off magic_quotes_gpc by adding a line to the .htaccess file
if win2k servers use .htaccess? add this line to it
php_flag magic_quotes_gpc off
any efforts i've made with my host to edit the php.ini have been shut down for whatever reason.
you cannot use .htaccess with IIS
and magic_quotes_gpc is PHP_INI_PERDIR|PHP_INI_SYSTEM, so the only way to set it to on/1 is to put in into the system php.ini. which i can well imagine not being easy to convince the hoster of a shared IIS.
get yourself apache hosting ...
as I understand it PHP_INI_PE
as I understand it PHP_INI_PERDIR allows you to configue with either httpd.conf or htaccess ?
I have the same problem...
I run 4.1 on some *cheap* webspace and can't use .htaccess.
For now I have disabled the magic_quotes_gpc check in index.php. I don't observe any ->> bad side effects, but I'm interessted in a clean solution.
Not what you want, but .. .h
Not what you want, but ..
.htaccess files are verry convenient, and just one of many reasons you would be better of with an apache host :D
o.s
Moodle needs magic quotes
One of the required conditions for Moodle is that Magic quotes gpc be turned on.
I guess that if I put .htaccess file in the Drupal directory with php_flag magic_quotes_gpc off, or php_flag magic_quotes_gpc on in the Moodle directory then I should be able to have both live happily together.
Tim
PS How come I am not told when another post is made to a thread that I have posted to?