Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 22nd, 2012  |  syntax: None  |  size: 0.89 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Cannot redeclare class on a copy of a site
  2. Fatal error: Cannot redeclare class SmsService in /var/www/html/project/customer1/application/service.class.php on line 3
  3.        
  4. interface SmsService {
  5.     public function SendSms($mobile, $customerId, $customerName, $message);
  6.     public function QueryIncomingResponse();
  7.     public function CleanExpiredConfirmations($maxConfirmationDays);
  8. }
  9.        
  10. #0 require_once() called at [/var/www/html/project/customer2/endpoint/queryIncomingResponse.php:2]
  11. Fatal error: Cannot redeclare class SmsService in /var/www/html/project/customer1/application/service.class.php on line 3
  12.        
  13. if( !class_exists( 'SmsService' ) ){ // Class not yet declared - so do it
  14.   interface SmsService {
  15.     public function SendSms($mobile, $customerId, $customerName, $message);
  16.     public function QueryIncomingResponse();
  17.     public function CleanExpiredConfirmations($maxConfirmationDays);
  18.   }
  19. }