Cannot instantiate non-existent class:

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
afaque
Forum Newbie
Posts: 1
Joined: Tue May 02, 2006 4:18 am
Contact:

Cannot instantiate non-existent class:

Post 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....
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

Post 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.
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

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