SetMgUsernamePassword("Administrator","admin"); $cred->SetLocale($locale); $site->Open($cred); $svc = $site->CreateService(5); } catch (MgException $exc) { header("HTTP/1.1 559".$exc->GetExceptionMessage()); $hdr = "Status: 559 ".$exc->GetExceptionMessage(); header($hdr); echo "\n"; echo "\n"; echo $hdr."\n"; echo $exc->GetExceptionMessage()."\n"; echo $exc->GetDetails()."\n"; echo "\n"; echo "\n"; return; } echo "\n"; echo "\n"; echo "Done.\n"; echo "\n"; echo "\n"; ?>