Uridium Posted November 4, 2013 Share Posted November 4, 2013 if you see constant error messages like Error: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater Error in "Unknown" Line 0 and you don't have access to a php.ini file then just create your own php.ini and insert the following and upload to root folder magic_quotes_gpc = Off magic_quotes_runtime = Off magic_quotes_sybase = Off extension=pdo.so extension=pdo_mysql.so Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted November 4, 2013 Share Posted November 4, 2013 or tell your host :p I had an issue before and tried adding an .ini file and it broke so if that happens call your host and have them fix it Quote Link to comment Share on other sites More sharing options...
Guest Posted November 4, 2013 Share Posted November 4, 2013 Or just not use depreciated functions? Quote Link to comment Share on other sites More sharing options...
bluegman991 Posted November 4, 2013 Share Posted November 4, 2013 Well you have to use it to turn it off, so by default php wont try to escape quotations and screw up your post and get data. Quote Link to comment Share on other sites More sharing options...
JakeB Posted November 4, 2013 Share Posted November 4, 2013 Or just not use depreciated functions? This. Or error_reporting(E_ALL ^E_DEPRECATED); Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 4, 2013 Author Share Posted November 4, 2013 Or just use no code at all :) are we all finished with this topic now :) Quote Link to comment Share on other sites More sharing options...
Dave Posted November 10, 2013 Share Posted November 10, 2013 Or just use no code at all :) are we all finished with this topic now :) Everyone was providing alternative solutions to the problem? Also creating a php.ini in your root folder won't always work on every host. This is a feature only supported by certain control panels. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.