Hello
I've been working with a large project the last year, and for some weeks ago, I got a problem almost "over night".
The scripts is easily explained build around classes. The errors that now occurs, is that PHP complains about redeclaration of the classes.
Let's say that the main script have
require 'inc/tekst.obj';
In the class 'tekst.obj', I have a function 'hentTekst($d)'. This function fetches a text from a MySQL-database based on the keyword $id. This is done for localization in three different languages.
Then - the main script initializes a new class; 'skjema.obj'.
This class contains functions that show schemes.
One of the functions in 'skjema.obj' is regNyAbo($aboData). This function's task is to show a scheme for registering new customers of the system.
Before the problem occured, I had to include/include_once/require the class 'tekst.obj' again in the function (reNyAbo($aboDAta)) - even if it was declared in the main script.
This will now show a Fatal Error about re-deklaration of the 'tekst.obj' - class...
It seems that all the class-declarations done in the main script suddenly have become global...
My ISP tells me that no PHP-upgrading have been done.
Anyone that have experienced this before, and mybe have a solution?
BTW: the site is http://www.personprofil.no?meny=settSprak&sprak=eng