Problem with PHP, MYSQL and IIS

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
dwairlk
Forum Newbie
Posts: 1
Joined: Mon Mar 26, 2007 9:13 am

Problem with PHP, MYSQL and IIS

Post by dwairlk »

Good Morning

I have a problem with next error:

Fatal error: Cannot redeclare class Database in C:\Inetpub\wwwroot\portal\lib\Database.class.php on line 2

I have installed Microsoft-IIS/6.0, PHP Version 5.2.1, and MySQL 5.0.37.
The page work correctly the twice times and third time reload it doesn´t work and it generate the error previous,

Thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I would have to guess that your code is, for some reason, including the class twice.
Post Reply