Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

  • Newbies

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!

  • Author
  • Newbies

Bump.

  • Newbies

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

Try changing this:


$result = $cmd->execute();





To this:



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

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.