Odd bug with php script admin interface

Web hosting discussion, programming, and shared and dedicated servers.
4 posts Page 1 of 1
by techgal128 » Fri Oct 18, 2013 1:17 pm
I'm not sure if this is a Sonic issue or not, but I'd figure I should ask anyways.

I'm customizing a custom php script that I currently have published using mini hosting. The admin interface that was included with the script has an odd bug that causes words like "you're" to show up as "you'/re". Also, the change font color and size doesn't work. I figured it was a problem with the script but when someone copied the files over to their own mysql server, the bugs disappeared. I confirmed that both databases use php 5.

Anyone have an idea what is causing this? If I need to include a piece of code, please let me know.
by kgc » Fri Oct 18, 2013 4:28 pm
If I was guessing; this sounds like a problem with "magic quotes" - this setting may not be consistent between servers. It is also a deprecated feature but I think is still available in the php running on our cluster.
Kelsey Cummings
System Architect, Sonic.net, Inc.
by techgal128 » Fri Oct 18, 2013 4:37 pm
That sounds like a good guess. How would I go about turning that feature off?

Oh, and would magic quotes cause features such as changing the text color and size not to work? That's another issue I'm having. I press save on the interface and it reverts to the regular text. Bold and italics works though.
by techgal128 » Thu Jan 02, 2014 4:40 pm
For those of you that are interested, I have an update. To fix this issue, you need to create a custom php.ini file. The instructions are found here:

https://wiki.sonic.net/wiki/Php5

When the php.ini file is created, just add the code to turn magic quotes off and it will work great.
4 posts Page 1 of 1