Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6331 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi All,

How can we track if php/FM connection is not set usng Filemaker class? Say if the account parameters passed do not not have access to database.

Using following syntax to connect FM database through php API

require_once ('Filemaker.php');

$fm = new FileMaker('FMDB.fp7', '127.0.0.1', 'User1', 'user');

Thanks in advance.

Posted

require_once ('Filemaker.php');

$fm = new FileMaker('FMDB.fp7', '127.0.0.1', 'User1', 'user');

$fm->newFindAnyCommand('SomeLayout');

$result = $fm->execute();

if( FileMaker::isError($result) ) {

print $result->getCode()."

".$result->getMessage();

die();

}

.. I'm not sure what the actual error is for it but if you try a false login it should come up from the above.

This topic is 6331 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.