Page 1 of 1

PHP errors

Posted: Sat Oct 20, 2007 12:23 pm
by johslind
I've noticed two strange errors when I have used php in connection with CMSms:
1: A variable that was declared global in a function could not be recognized outside the function. Only when I declared it global before calling the function it was recognized.
2: When integrated in CMSms the function htmlentities() is wildly erroneous.

Is Smarty the culprit??

Yours,
johslind.

Re: PHP errors

Posted: Mon Oct 22, 2007 4:42 pm
by Dr.CSS
Need more input...

Re: PHP errors

Posted: Tue Oct 23, 2007 6:52 pm
by johslind
mark wrote: Need more input...
1: I don't think it will help anybody to see the function. My description seems to be clear enough. I can add that I have used my script for years without problems. The problem came when I integrated the script in a CMSms homepage by placing the script in a tag. I lost the variable that the function should have produced, but I discovered that I could get it if I declared it global before calling the function.
2: It is about the Danish letters æ, ø, and å. My computer seems to use the traditional ISO character set, so with UTF they got misrepresented. As I did not know how to make ISO the default, I tried to alter my script so that it would save the text with entities. I couldn't.