magic_quotes_gpc = Off for which directory

primedomain

Joined: 2002-11-09
Posts: 115
Posted: Mon, 2002-11-11 02:53

Hello,

magic_quotes is set to on by default on my webserver. According to my webhoster's FAQ I can copy a php.ini in any directory. I did that for /setup and the setup recognizes that magic_quotes is set to off for that directory.
On my test album I still have a problem with single quotes etc. I guess that's because I have to put the php.ini in a specific directory. I tried to put it at the top level, but AFAICS this does not work, i.e. it doesn't seem to have any effect on the subdirectories (according to phpinfo).

So my question is bascially: which directory is "relevant"?

thanks

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7988
Posted: Tue, 2002-11-12 01:39

You should only need to put it in the gallery directory. Copy phpinfo.php from setup up to the gallery dir and check it out to verify that the setting actually takes root.

 
primedomain

Joined: 2002-11-09
Posts: 115
Posted: Sat, 2002-11-16 23:40

Doh! Works now for albums that I created after adding the php.ini; for existing albums I had to change the title manually. *slaps himself*

thanks