setProperty('hostspec', 'https://185.186.14.34:4443');
$fm->setProperty('database', 'leanLIMS');
$fm->setProperty('username', 'testAPI');
$fm->setProperty('password', 'mEda2023!!!');
// Call listLayouts() to get array of layout names.
$layouts = $fm->listLayouts();
// If an error is found, return a message and exit.
if (FileMaker::isError($layouts)) {
printf("Error %s: %s\n", $layouts->getCode());
"
";
printf($layouts->getMessage());
exit;
}
// Print out layout names
foreach ($layouts as $layout) {
echo $layout . "
";
}
?>