I know it WILL BE deprecated in php 5.3.0 and remove in 6.0,
but if so, you should say that 1.1.7 is only 5.3 compatible,
if not, why remove it right now ? most hosting wont alowed magic_quotes to be off
and between 5.0 and 5.3 magic_quotes off is a security risk, so there is one problem, maybe you should recheck "System requirements"
where can i find 1.1.6 ?
but if so, you should say that 1.1.7 is only 5.3 compatible,
if not, why remove it right now ? most hosting wont alowed magic_quotes to be off
and between 5.0 and 5.3 magic_quotes off is a security risk, so there is one problem, maybe you should recheck "System requirements"
where can i find 1.1.6 ?
If opencart work on a linux server and if my hosting don't want to set magic_quotes_gpc = off ....... is a problem ? What happen ?
I have noted that is not essential for opencart installation because the installation starts also if it is on ..... on linux server is the same if is on or off ?
Thanks.
I have noted that is not essential for opencart installation because the installation starts also if it is on ..... on linux server is the same if is on or off ?
Thanks.
If Opencart work on a linux server and if the hosting don't want to set magic_quote_gpc=off is a problem ? What happen ?
I have seen that the installation tell me that it is "no good" but don't stop the installation and go ahead..... is a problem ?
I must have it on also if is a linux server ?
Thanks.
I have seen that the installation tell me that it is "no good" but don't stop the installation and go ahead..... is a problem ?
I must have it on also if is a linux server ?
Thanks.
you can work with 1.1.7 on a magic_quote on linux server (i'm with centos) after the install, you need to go change the file system/startup.php and remove or comment :
Code: Select all
ini_set('magic_quotes_gpc', 'Off');
if (ini_get('magic_quotes_gpc')) {
exit('Error: magic_quotes_gpc is enabled!');
}
If you enable magic quotes, you'll get \" instead of just " in text that you submit.
Just be aware of that. Magic quotes is the second worst feature php invented (register global variables being the first).
Just be aware of that. Magic quotes is the second worst feature php invented (register global variables being the first).
You could disable requiring magic quotes and put this code on your site so it runs before *any* other php is run. This will remove all slashes from user data only if magic quotes is on... but would certainly be annoying to have to put in the main opencart release.
Code: Select all
if(get_magic_quotes_gpc()) {
foreach($_POST as $k=>$v){
$_POST[$k] = stipslashes($v);
}
foreach($_GET as $k=>$v){
$_GET[$k] = stripslashes($v);
}
}
This solution is also for opencart 1.2.6 ?
http://www.restaurantsupplies.eu Restaurant Supplies
Opencart 1.5.6.4 VQMOD 2.4.1
Languages: Italian, French, German, Hungarian, English, Russian, Polish and Spanish
liquidpele wrote:You could disable requiring magic quotes and put this code on your site so it runs before *any* other php is run. This will remove all slashes from user data only if magic quotes is on... but would certainly be annoying to have to put in the main opencart release.
Code: Select all
if(get_magic_quotes_gpc()) { foreach($_POST as $k=>$v){ $_POST[$k] = stipslashes($v); } foreach($_GET as $k=>$v){ $_GET[$k] = stripslashes($v); } }
where can i put these code in my site? i'm new in this, please let me know more detail... thanks
is it apply for open cart version 1.5.5.1?
(1) No, in 1.5.5.1 you do not have to give it a second thought. So here are two more.
(2) Magic quotes will probably already be off. Live with that, it's what you want. If magic quotes are on, there are several lines low in .htaccess.text (lead and trailing dots, text), which you'll arm by renaming it .htacess (lead dot, no trailing anything), which can be uncommented (remove the "#" at the start of a directive line), and one of those concerns magic quotes, which can be turned on by uncommenting it.
(3) As a general rule (here oversimplified to make the point), magic quotes speak to whether quotation marks and certain other punctuation marks that mean something to the machine run through the processor as commands or as text-strings. There is a special procedure called "escaping" by inserting characters known as "escapes" to tell the processor what to do or not when it encounters certain characters. Magic quotes in effect automate escaping and unescaping certain characters. The whole idea of escaping goes way, way back in Code Land, where it is almost as primeval as the typewriter keyboard.
(2) Magic quotes will probably already be off. Live with that, it's what you want. If magic quotes are on, there are several lines low in .htaccess.text (lead and trailing dots, text), which you'll arm by renaming it .htacess (lead dot, no trailing anything), which can be uncommented (remove the "#" at the start of a directive line), and one of those concerns magic quotes, which can be turned on by uncommenting it.
(3) As a general rule (here oversimplified to make the point), magic quotes speak to whether quotation marks and certain other punctuation marks that mean something to the machine run through the processor as commands or as text-strings. There is a special procedure called "escaping" by inserting characters known as "escapes" to tell the processor what to do or not when it encounters certain characters. Magic quotes in effect automate escaping and unescaping certain characters. The whole idea of escaping goes way, way back in Code Land, where it is almost as primeval as the typewriter keyboard.
Thanks for your help. My current server showed that magic quotes Gpc is On. I tried your way and it worked
But then I tried to call my host and they showed me how to turn it off and I want to share with everybody, hope it will help somebody.
Magic Quotes is a process that automatically escapes incoming data to the PHP script. However, since the release of PHP 5.3.0, this feature has been depreciated.
There are a few ways you can disable Magic Quotes: (only choose 1 way to do, not all)
1. Disabling Magic Quotes Server Side via php5.ini
Add this code to your php5.ini file:
If the hosting account does not have a php5.ini file, you have to add one.
2. Disabling Magic Quotes at Runtime
Place code at top of the .php file so it executes when the file runs:
NOTE: The magic_quotes_gpc directive may only be disabled at the system level, and not at runtime.
But then I tried to call my host and they showed me how to turn it off and I want to share with everybody, hope it will help somebody.
Magic Quotes is a process that automatically escapes incoming data to the PHP script. However, since the release of PHP 5.3.0, this feature has been depreciated.
There are a few ways you can disable Magic Quotes: (only choose 1 way to do, not all)
1. Disabling Magic Quotes Server Side via php5.ini
Add this code to your php5.ini file:
Code: Select all
magic_quotes_gpc = Off;
magic_quotes_runtime = Off;
magic_quotes_sybase = Off;
2. Disabling Magic Quotes at Runtime
Place code at top of the .php file so it executes when the file runs:
Code: Select all
<?php
if (get_magic_quotes_gpc()) {
function magicQuotes_awStripslashes(&$value, $key) {$value = stripslashes($value);}
$gpc = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
array_walk_recursive($gpc, 'magicQuotes_awStripslashes');
}
?>
Good! Just for reference, the control of directives is hierarchically stepwise. Generally, the deeper the solution, the better. Controlling magic quotes at the level of the entire server's php.ini tends to favor having them, for benefit of many users who aren't running OC or certain other programs. Controlling them at the level of the account's php.ini, which will often be plural for selectable php.exe versions (you'd shown php5.ini, so you probably also have others) turns them on or off before php scripts even run. Controlling them next at the level of .htaccess, stepwise in account root through program directories such as for OC itself, also steps in before php scripts even run, but getting along with the server is potentially tricky. Controlling them at the level of php scripts, such as in the first several lines, is least preferred but is a likely viable option.
Who is online
Users browsing this forum: No registered users and 12 guests