surfincajun Posted November 13, 2006 Posted November 13, 2006 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.
Jose Sevoya Posted November 14, 2006 Posted November 14, 2006 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now