AnsweredAssumed Answered

Error 959 When connecting to database in PHP

Question asked by matthewpearson on Jun 25, 2012
Latest reply on Jun 25, 2012 by matthewpearson

Title

Error 959 When connecting to database in PHP

Your post

I'm trying to connect to a filemaker server on another machine using PHP.

require_once('FileMaker.php');
$fm = new FileMaker();
$fm->setProperty('hostspec', 'http://192.168.1.10');
$fm->setProperty('database', 'FMServer_Sample');

I can go to http://192.168.1.10:16000/ and see the FM admin console from the webserver/PHP machine, but I can't get access to any of the databases. I think this is something to do with the FM server setup as I had it working briefly yesterday in FM12, but I need to use FM11 for compatibility with other DBs.

I have tried lots of changing permissions on the DBs and checking that web publishing is enabled, but I am stuck now.

As soon as PHP runs the last line above I end up with a filemaker error 959, which seems to indicate that web publishing is not available.

Thanks in advance - Matthew Pearson

Outcomes