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.

call fm script from php.fx

Featured Replies

I am having a problem calling a script from php fx. I am following the docs to the letter - at least I think so.

I am running FM6 Pro on WinXP. I am wondering if there are any privileges that I need to set on FM6 Pro in order to allow scripts to be called from the web. Any clues -

$findQuery = new FX($Server, $Port) ;

$findQuery->SetDBData("table", "layout") ;

$findQuery->SetDBPassword("pass") ;

$findQuery->AddDBParam("-script","script1") ;

Am I missing something?

  • Author

Are there any settings in the FM database application that need to be addressed in order for scripts to be executed/called from PHP...

Thanks!

Does the User have "permission" to run Scripts from the web?

Garry

  • Author

I guess not - how could I go about checking this? I do have an admin password on the whole database, but nothing is mentioned in the phpfx docs. In addition, I am able to perform finds on the database and get a result...

So, I would think that scripts would operate under the same defined privilege set.

How could I check- thanks...

That is probably OK.

Do the Scripts contain only "web compatible" steps?

Garry

  • Author

The script contains:

Goto Layout

Perform Find

Export Records(no Dialog)

This is a stored find script that exports its results to a shared drive on the network.

Back to Gary's question:

In your web security databases, do you have 'perform scripts' checked in the database table you are accessing.

Also make sure at the end you have:

$findQueryResult=$findQuery->FMFind() ;

  • Author

I have been trying to enable the Web Security Databases options under Edit->Preferences->Application->PlugIns->Web Companion->Configure...

However, only the Filemaker Pro Access Privileges radio button can be selected. Please advise as to how I enable the Web Security Databases option...

Thanks

You need to open the web security databases. They should be in a folder called Web Security / Databases

When you open them up the default setup is to turn All databases, and All Users to no privileges

You then create a new record where you can allow All Users Browse, and Scripts privileges. etc.

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.