PHP errors

General project discussion. NOT for help questions.
Post Reply
johslind

PHP errors

Post 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.
Last edited by johslind on Tue Oct 23, 2007 6:40 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: PHP errors

Post by Dr.CSS »

Need more input...
johslind

Re: PHP errors

Post 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.
Post Reply

Return to “General Discussion”