disabling magic_quotes_gpc don't work

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!!!

Comments

  • acrylian Administrator, Developer
    Maybe contact your host.
  • 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 :)
  • @arvidtp: I tried your method and worked perfectly. Thanks buddy. Yeah, u r right. That was the problem.
    Thanks a lot.
  • 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.
  • acrylian Administrator, Developer
    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.
Sign In or Register to comment.