ZenphotoCMS Forum
disabling magic_quotes_gpc don't work - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: disabling magic_quotes_gpc don't work (/thread-7391.html)



disabling magic_quotes_gpc don't work - udaraaka - 2010-07-25

I disabled magic_quotes_gpc in my php.ini file and tested it with the code described at
http://www.php.net/manual/en/function.get-magic-quotes-gpc.php

and tested the status using

echo get_magic_quotes_gpc();

and it returned 0 means that i have successfully disabled magic_quotes_gpc.

Also i checked
echo get_magic_quotes_runtime();

and it printed 0.However, still i get that warning about magic_qoutes_gpc when i try to install zenphoto again. Can anyone help me to solve this problem?
Thanks!!!




disabling magic_quotes_gpc don't work - acrylian - 2010-07-25

Maybe contact your host.




disabling magic_quotes_gpc don't work - arvidtp - 2010-07-26

Is the php.ini file in the zp-core folder? Personally I keep forgetting that I need to put it there every time I upgrade rather than just in the top level zenphoto folder. Php.ini needs to be in the folder in which the scripts run I think - but correct me if there is a better way - not an expert in this stuff, just know enough to generally get things to work in my own probably kludgy ways




disabling magic_quotes_gpc don't work - udaraaka - 2010-07-26

@arvidtp: I tried your method and worked perfectly. Thanks buddy. Yeah, u r right. That was the problem.
Thanks a lot.




disabling magic_quotes_gpc don't work - sbillard - 2010-07-26

If the php.ini file truely needs to be in the folder where the script runs, then there will be many more copies needed. I really don't know how the file works--my provider lets me edit my server based ini file.




disabling magic_quotes_gpc don't work - acrylian - 2010-07-27

There are different kinds of php.ini files. The main one is for the whole server itself, then some servers allow setting special stuff via those within a folder for that folder (but IMHO that should include all sub folders). Anf for example my host does not allow php.ini file editing but I can change settings via htaccess.