不能在函数文件PHP中包含类文件

I have this dbconnect.php file that uses a class called DB to do DB operations. I have another file that contains some general functions called functions.php. This dbconnect file is working well in everywhere but functions.php. What could be the problem?

Try using include_once instead of includes.

Also, it would help if you could c+p the error you are receiving.

Using include_once instead of include, solved my problem. I think it was caused because of object orientation. My best guess is, when I used include, the class was c/p'd multiple times which interfered the core of object orientation concept.