Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

  • Newbies
Posted

Hey guys,

I'm struggling with getting PHP to trigger an FMP script. I can do everything i want to do through PHP, but I want to leverage the FMP back end. Therefore, I want to trigger a find locally, rather than using PHP, etc. I created a runscript.php page and when I run it, I get the following error:

Notice: Only variable references should be returned by reference in C:\Program Files (x86)\FileMaker\FileMaker Server\Web Publishing\publishing-engine\php\FileMaker\Command.php on line 126

Here is my simple code.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<?php



session_start();

require_once 'FileMaker.php';

$connection =& new FileMaker('underwritersu', 'localhost');

$connection->setProperty('username', 'admin');

$connection->setProperty('password', 'master');



$cmd = $connection->newPerformScriptCommand('ClassDetail', 'web_test', 'status');

$result = $cmd->execute();

    

?>

What am I missing here? Thanks in advance!

  • Newbies
Posted

Thats not a FM issue it's just a PHP notice

Try changing this:


$result = $cmd->execute();





To this:



@$result = $cmd->execute();

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