cozzy1984 Posted March 7, 2008 Share Posted March 7, 2008 Just wondering if anyone knows a simple way to disable magic quotes. I have my site uploaded onto freehostia and ive run a check to see if they are enabled and it brought back: magic_quotes_gpc = 1 register_globals = 1 I cant see any settings to turn off on the site manager, and i have this code: php_flag magic_quotes_gpc off but do i put this code in its own file or where do i put it? Hope someone can help. Cheers Link to comment https://forums.phpfreaks.com/topic/94868-disabling-magic-quotes-on-online-server/ Share on other sites More sharing options...
Gamic Posted March 7, 2008 Share Posted March 7, 2008 Inside of your php script have: <?php set_magic_quotes_runtime( false ); ?> The code you have would be applied to a php.ini file. However, it is highly likely that you don't have access to that file. Link to comment https://forums.phpfreaks.com/topic/94868-disabling-magic-quotes-on-online-server/#findComment-485962 Share on other sites More sharing options...
Daniel0 Posted March 7, 2008 Share Posted March 7, 2008 The code you have would be applied to a php.ini file. However, it is highly likely that you don't have access to that file. No, that would be in httpd.conf or an .htaccess file in a folder with AllowOverride. Link to comment https://forums.phpfreaks.com/topic/94868-disabling-magic-quotes-on-online-server/#findComment-485964 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.