Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Hello,

I was wondering if there is a line of code that I can put in my solution that will either die or redirect to a can't connect to database screen if the database is not available.

I am contemplating having filemaker as the main database engine behing my websites, but If for some reason the connection can't be completed, users would be redirected to a mysql entry screen located on another server.

That will take some work, but I would really just like to know how to set some sort of timout like 10 seconds or so if they can't login, redirect them to another page.

Posted

Hello,

I have seen headers used for redirects, and from my FMStudio pages it seems that the following line of code is used to trap for errors:

if(is_a($result,"FX_Error") || $result['errorCode'] != "0") fmsTrapError($result,"error.php");

fmsTrapError is an FMStudio specific function that does the redirect to the requested page, but you could potentially use a Location HTTP header for the redirect.

Best,

Jose

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