Source language: Translate to:

Redirect a webserver...

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

Moderator: Neosoft Support

Redirect a webserver...

Postby David de Argentina » Fri Oct 21, 2016 10:48 am

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

Re: Redirect a webserver...

Postby David de Argentina » Fri Oct 21, 2016 11:09 am

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


Return to NeoBook and the Internet

Who is online

Users browsing this forum: No registered users and 2 guests