i don`t know what i must do with this code :
<img height=\"\\"\\\\"12\\\\"\\"\" alt=\"\\"\\\\"\\\\"/\\"\" src=\"\\"\\\\"/images/Image/acj2.gif\\\\"\\"\" width=\"\\"\\\\"12\\\\"\\"/\"/> <img height=\"\\"175\\"\" alt=\"\\"\\"\" src=\"\\"/images/Image/benek.jpg\\"\" width=\"\\"439\\"/\"/>
FCK generate that crazy code to my.txt ;( Help me Pleas -
P.s i`m only graphic desinger i don`t know much about programing
<img height=\"\\"\\\\"12\\\\"\\"\" alt=\"\\"\\\\"\\\\"/\\"\" src=\"\\"\\\\"/images/Image/acj2.gif\\\\"\\"\" width=\"\\"\\\\"12\\\\"\\"/\"/> <img height=\"\\"175\\"\" alt=\"\\"\\"\" src=\"\\"/images/Image/benek.jpg\\"\" width=\"\\"439\\"/\"/>
FCK generate that crazy code to my.txt ;( Help me Pleas -
P.s i`m only graphic desinger i don`t know much about programing
RE: problem with ; \&quot;\\\\&quot;\\\\&quot
If you are using PHP, it's probably because magic quotes is on. If you don't have admin to your server, you may not be able to turn it off. http://us2.php.net/magic_quotes/
RE: problem with ; \&quot;\\\\&quot;\\\\&quot
php_flag magic_quotes_gpc off
RE: problem with ; \&quot;\\\\&quot;\\\\&quot
Well, you people are really making a bug problem harder to solve with your sollutions. Developing a system that depends on a PHP setting is straigh forward dumb, you need to be a little smarter.
Om PHP's own pages on stripslashes() lies the sollution, namely this little piece of code :
function deslash($string){
if (get_magic_quotes_gpc())
$string = stripslashes($string);
return $string;
}
All _POST and _GET data your recieve should *always* without exception be ran though the deslash() function, this way you always know how your data is treated. When you insert into the database, you add the slashes. This is the only way you can develop a system, you cannot be dependant on globals being on or of, that is just plain stupid.
You data which is already garbeled looks pretty much destroyed and you would most likely need to manually fix it. You could try to reverse the code with stripslashes and see if it all ends up find, it should.
As with the deslash there also comes a reslash,
function reslash($string){
if (!get_magic_quotes_gpc())
$string = addslashes($string);
return $string;
}
This pretty much works the other way, when inserting anything into the database always remember to reslash() your data incase globals are off.
Regards,
Kim Steinhaug
http://www.steinhaug.com - http://www.easycms.no - http://www.easywebshop.no
RE: problem with ; \&quot;\\\\&quot;\\\\&quot
stripslashes()
to the server side processing.
RE: problem with ; \&quot;\\\\&quot;\\\\&quot;/
This is a php issue not an FCK issue.
RE: problem with ; \&quot;\\\\&quot;\\\\&quot
Well my intentions was not to be rude, just to make it very clear the way one should act on register_globals behavior. As you state, this has nothing to do with FCK, this is a serverside issue - a PHP issue to be excact.
My point is just that going for a register_globals on or off setting is a bad sollution, solving the problem with a dynamic sollution which fixes it as with the deslash() reslash() option is a much better, safer and more stable way to go.
Then again, I havnt been to much into this forum so going with some quick'n'dirty language might me taken offensive by some, dont judge me like that,