Page 1 of 1

Redirect a webserver...

PostPosted: Fri Oct 21, 2016 10:48 am
by David de Argentina
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

Re: Redirect a webserver...

PostPosted: Fri Oct 21, 2016 11:09 am
by David de Argentina
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