Newbies Dave Reuss Posted January 16, 2012 Newbies Posted January 16, 2012 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 Rorico Posted January 19, 2012 Newbies Posted January 19, 2012 Thats not a FM issue it's just a PHP notice Try changing this: $result = $cmd->execute(); To this: @$result = $cmd->execute();
Recommended Posts
This topic is 4948 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 accountSign in
Already have an account? Sign in here.
Sign In Now