Hi overthere,
I had installed a webserver in my machine. some special services works on port 8082.
Sometimes, i need to down the server for database maintenaince, and obviously, users get an error message.
Are there any way to redirect the error condition, basically, "could not connect to the MySQL database", to a "on maintenaince" page ?
Thanks in advance,
David de Argentina
Redirect a webserver...
Moderator: Neosoft Support
-
- Posts: 1596
- Joined: Mon Apr 04, 2005 4:13 pm
- Location: Buenos Aires, Argentina
- Contact:
-
- Posts: 1596
- Joined: Mon Apr 04, 2005 4:13 pm
- Location: Buenos Aires, Argentina
- Contact:
Re: Redirect a webserver...
Problem solved.
At the or die() clause, we can use something like this:
mysql_connect("details go here")or die(require("failed.php"));
Greetings from Buenos Aires,
David de Argentina
At the or die() clause, we can use something like this:
mysql_connect("details go here")or die(require("failed.php"));
Greetings from Buenos Aires,
David de Argentina