Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fckeditor changes quotes - magic quotes problem?

Status
Not open for further replies.

theotrain

Programmer
Mar 5, 2003
150
MX
when i enter code using FCKeditor it changes all my quotes to: "\&quote;

so, this:
[tt]<object height="340" width="560">[/tt]
becomes:
[tt]<object height="\&quot;340\&quot;" width="\&quot;560\&quot;">[/tt]

i found a lot of talk about this on the internets but nothing worked for me. in fckconfig.js i tried setting

[tt]FCKConfig.ProcessHTMLEntities = false ;[/tt]

to no avail. weirdly it works fine on my local testing server (wamp) running it on gaddady server it fails. so the theory that i need to turn off magic quotes in php made some sense. i couldnt get that to work - maybe doing it wrong? i just added

[tt]magic_quotes_gpc = Off[/tt]

to php.ini and no change. that file lives in the main directory but my pages are in a subdirectory, if that matters.

any ideas?
 
to my own great surprise i got this to work by adding a php5.ini file in godaddy to turn the magic quotes off
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top