Jump to content
Server Maintenance This Week. ×

Filaemaker connection


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

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 6127 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.