AnsweredAssumed Answered

Run a script with parameter using PHP API

Question asked by Tom_Droz on Oct 16, 2017
Latest reply on Oct 16, 2017 by Tom_Droz

I have worked on the tis crazy thing for hours.  I am trying to run a script with a variable that I'm setting in the script.  If I run the script with the parameters set inside FileMaker, it works, when I try to run it via pho no error, but the script dosent produce any result with the identical data.  Am I doing something wrong here?  I changed the user to have full access to everything, all layouts all scripts, all fields.

 

    <head>
    </head>
    <body>
<?php
require_once('Connections/Connection.php');

$variable = "E1005^74";
    $newPerformScript = $fm->newPerformScriptCommand ('test', $variable);

$results = $newPerformScript ->execute();

if(FileMaker::isError($Inquiry_result)) fmsTrapError($Inquiry_result,"error.php");

 

  exit;
?>

    </body>
</html>

Outcomes