AnsweredAssumed Answered

php api newPerformScriptCommand problem

Question asked by doughemi on Feb 24, 2016
Latest reply on Feb 24, 2016 by doughemi

I'm trying to run a FileMaker script via the php api newPerformScript() command. The script is

 

<?php

define('FM_HOST_R', 'xx.xx.xx.xxx');

$fm_file_r = 'Regatta_Schedule_14';

$fm_user_r = 'WebUser' ;

$fm_pass_r = 'webpwd' ;

include_once ('current/include/filemaker14/FileMaker.php');

# instantiate a new FileMaker object

$fm_regatta = new FileMaker($fm_file_r, FM_HOST_R, $fm_user_r, $fm_pass_r);

$accessed = $fm_regatta->listLayouts();

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

  echo '<b> REGATTA SCHEDULE DATABASE UNAVAILABLE.</b>  Please try later.  ' . $available->getMessage();

  exit;

}

echo 'start test<br />';

$doit = $fm_regatta->newPerformScriptCommand('Layout #91', 'phpScriptTest', '');

$didit = $doit->execute();

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

  echo 'Error Running Script ' . $didit->getMessage() . ' - ' . $didit->getCode() .'<br />';

}

?>

 

The error message is Error Running Script Unknown error - 8003

The user WebUser has a <full access> privilege set.  None of my reference books lists an 8003 error.

 

Where did my brain cramp start?

Outcomes