November 13, 200619 yr 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.
November 14, 200619 yr 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
Create an account or sign in to comment