Page 1 of 1

Cannot instantiate non-existent class:

Posted: Tue May 02, 2006 4:25 am
by afaque
I am Using PHP 4.3 version and im writing code using classes and functions. but after sometime my application gives me an error that 'Cannot instantiate non-existent class: sqlfunctions in D:\afaque\sql\index.php on line 13' but the class is there and it was working previously. if i create another application with the same functionality it works but after some time it stopped working is there any version related error. Plz give me suggesions....

Posted: Tue May 02, 2006 6:57 am
by jmut
1. try to simplify the problem and post code which produce the error.
2. try to put class definition before usage. in some cases it is important.

Posted: Tue May 02, 2006 8:07 am
by neophyte
I've had problems with IIS not picking up the relative path of included files. Try the absolute path. If it works you will probabaly want to add include_path() to your code.