Hello all,
I am using Shared Hosting i am not able to off the "Magic Quotes".
i am not able to move next step.
I checked with hosting company they says it is not possible to off "Magic Quotes" in shared hosting.
Please help...
Hello all,
I am using Shared Hosting i am not able to off the "Magic Quotes".
i am not able to move next step.
I checked with hosting company they says it is not possible to off "Magic Quotes" in shared hosting.
Please help...
There is an example of how to remove the slashes added to the request by magic quotes:
http://php.net/manual/en/security.magicquotes.disabling.php
if (get_magic_quotes_gpc()) {
$process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
while (list($key, $val) = each($process)) {
foreach ($val as $k => $v) {
unset($process[$key][$k]);
if (is_array($v)) {
$process[$key][stripslashes($k)] = $v;
$process[] = &$process[$key][stripslashes($k)];
} else {
$process[$key][stripslashes($k)] = stripslashes($v);
}
}
}
unset($process);
}You can add this code at the top of the index.php file (AXIS_ROOT/index.php).
This will not disable the magic quotes functionality, but will remove the slashed added by this module, so you need to disable checking for magic quotes:
Open Wizard.php file (app/code/Axis/Install/Model/Wizard.php)
Comment these lines (~125-128):
// 'magic_quotes' => array(
// 'title' => 'Magic quotes',
// 'expected' => 'Off'
// ),Sure Sir,
I will check and tell you...
Thanks for your Great support....
This is a life saver...
I have disabled my magic quotes and Axis works like a charm.
Thank you.
there are many other ecommerce script that is more stable than Axis, it is just a waste of time dealing with the basic bug like this
It's not a bug. Magic_quotes are not supported by Axis http://axiscommerce.com/faq#system-requirements.
Magic quoted are not recommended to use for all projects: http://www.php.net/manual/en/security.magicquotes.whynot.php