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.

Web Hosting and Scripts

Featured Replies

I've noticed something with webhosting and performing a script. If I can describe accurately; I webshare db1, and then when I open nonshared db2 it runs a script that takes a minute. During which time, If someone queries my db from the internet..the script stops dead in it's tracks. I have set allow user abort off in all scripts. I've tried a few things, but no luck fixing this. Access to the database is CDML and read only. Anyone?

  • Author

My _new_ discovery is that FM is 'single threaded'. I have an idea of what that means, but this sounds very close to what my troubles are. The only solution i have found so far is to buy another computer. So..to effectively serve an FM database, it seems I need three computers: one to run FM server, another to run FMPro and supply information to the web, and another to 'run scripts' on to prevent the scripts from being 'interrupted' by users requesting records from the web. I'm I getting warm?

" one to run FM server, another to run FMPro and supply information to the web"

Agreed there...

"another to 'run scripts' on"

Here we might disagree.

Most people here avoid the use of scripts through the web interface. Almost everything can be done without scripts. If however you need to run a script to perform some administrative task (like generate reports, etc) then it shouldn't be run through the web anyway.

Almost everything can be done without scripts.

This is particularly true when you use regular middleware, and not CDML.

  • Author

Well, CDML was quite easy and very effective to get a read only page up. I guess my only solution is to unload the database that serves the webpage in order to run my update scripts. So when i do this, the CDML that queries my database will say 'database' no open. Does anyone know if (or if not) this error can be captured so I can redirect the user to an 'error' page?

Try "-error". Also, the [FMP-CurrentError] tag in the Error Format file.

Good Luck.

Garry

p.s. I would be running any maint/update Scripts on the Server.

  • Author

Garry, If one is to run a script, doesn't the file need to be opened with filemaker? And if so, I've seen it's not recommended to run FM and FMserver at the same time on the same machine.

I was thinking of running them from any Client logged into the Server.

However, if you are only serving to the web you will really only need FM Unlimited (not Server). In this case, I'm not sure how you would perform your updates with Scripts, there maybe a way.

All the best.

Garry

  • Author

I found that using the scheduler that comes with Microsoft will work to launch a filemaker file, so long as FM is already running. If FM is not running, the schedule will remain running until FM is closed. So this works in my case. Would be nice to redirect the webpage somehow while it's down tho.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.