Hi everyone,
I'm having a problem running scripts from php. One of many things may be happening but I'm not very familiar with the api. What I'm trying to do is run a script that will create a pdf and put it in a temporary location in my web directory. I know the script works perfect using the Filemaker Client but I am unable to call it from php. I've tried both ways below:
$params = 2;
$conn = new FileMaker(......);
$test = $conn->newPerformScriptCommand('layout','some_Script',$params);
$result=$test->execute();
/*
$cmd = $fm->newFindAnyCommand('layout');
$cmd->setScript('some_Script',$params);
$blah=$cmd->execute();
*/
Unfortunately no matter how it's written it always comes up with the same error and won't run the script. I've tested this with a simple script as well that finds and changes the value of a known record field. nothing seems to work. It always comes to the error shown below.
Notice: Only variable references should be returned by reference in /Library/FileMaker Server/Web Publishing/publishing-engine/php/lib/php/FileMaker/Command.php on line 126
If anyone has gotten scripts to work with php please let me know what i'm doing wrong.
OS Mac OSX
Filemaker 9 server
Thanks in advance,
Afrite