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.
PHP errors
PHP errors
Last edited by johslind on Tue Oct 23, 2007 6:40 pm, edited 1 time in total.
Re: PHP errors
Need more input...
Re: PHP errors
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.mark wrote: Need more input...
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.