Jump to content

php include


vkgbiz

Recommended Posts

Thanks  raphael1, for your reply. but i solved this problem. actually this problem triggered when i included two files which has the

same class name.

 

for example ,

 

first.php contains a class called  " transaction" and second.php also contains  "transaction"  class but with different functions in it.

 

when we include both these files(first.php,second.php) it'll trigger the  "cannot redclare class" , that is why i asked you how to

 

remove  one file that has the same class declaration. i just renamed one class now its works well.

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.