Redirect a webserver...

Questions and information about creating Internet aware NeoBook applications. Including PHP, HTML, FTP, HTTP, Email, etc.

Moderator: Neosoft Support

Locked
David de Argentina
Posts: 1596
Joined: Mon Apr 04, 2005 4:13 pm
Location: Buenos Aires, Argentina
Contact:

Redirect a webserver...

Post 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
David de Argentina
Posts: 1596
Joined: Mon Apr 04, 2005 4:13 pm
Location: Buenos Aires, Argentina
Contact:

Re: Redirect a webserver...

Post 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
Locked