phpTrafficA user forum
 
phpTrafficA Homepage
 
Please ask your questions in English or French! Support in other languages may be slow.
Russian speaking users can find Russian discussions on phpTrafficA at ru-board.com
 
Operations:  Thread list Thread list  New thread New thread  Reply in this thread Reply in this thread
Search 
Advanced search
Thread "Some new options" Started by Themuzz on: 11/05/2008 12:26pm
Current page: 1 of 1 Go to page: 1
Some new options
Posted by: Themuzz  on: 11/05/2008 12:26pm
Hi,

If our mysql server is down, phptraffica gives an error, saying it cannot connect to the mysql server. Now I would like to be able to specify this text or to forward to an specific page with more information. This can't be so hard, I also coded it in myself with the php header function.

Let me know what you think about it.

Greetingz Themuzz
Ad
Re: Some new options
Posted by: Butchu  on: 11/05/2008 2:52pm
Well, it is a configuration issue, password, permissions... something like that...
Re: Some new options
Posted by: themuzz  on: 11/06/2008 7:29pm
I think you misunderstood the question.

Sometime our server is down, it crashes (yeah, we have to buy a new one). But if phptraffica cannot connect to the server (because it crashed) it show the following error:

<br>Can not connect to database in count.php: ".mysql_error() (but then php parsed ofcourse)

I would like to add an page where phptraffica should point at when he cannot connect to mysql. So not the standard error but my own error page. I've alse made it myself but everytime you bring out an update I have to change it again..

Hope you understand

Greetingz Themuzz
Re: Some new options
Posted by: Butchu  on: 11/08/2008 7:53am
Indeed, I did not understand the question!

Technically, this is easy. But how to deal with individual configurations? Most people handle their errors differently. I do not know how to offer a solution that would work for everyone.

Any suggestion?
Re: Some new options
Posted by: Themuzz  on: 11/08/2008 1:50pm
Perhaps you should give the option to forward to a specific page (that would handle the error) or give the option to include an personal php file that will handle and echo a specific error.

Something like:
$mysql_error_type = "forward";
$mysql_error_location = "http://www.google.com/";

Or

$mysql_error_type = "include";
$mysql_error_location = "/var/blaat/file.php";

Or

$mysql_error_type = "default";
$mysql_error_location = "";

But than with correct names etc :)

Let me know what you think about it.

Greetingz Themuzz
Re: Some new options
Posted by: Butchu  on: 11/13/2008 7:32am
Yep, that is not bad. I'll add it in the todo list for future versions.
I get you a coffee!
Posted by: Butchu  on: 04/24/2014 4:57pm
Gee, I really liked this answer! I want to thank you and I buy you a coffee!
Current page: 1 of 1 Go to page: 1
Forum powered by FreeForum
© 2004-2010 ZoneO-soft
phpTrafficA homepage in: English - Français - Русский - Deutsch - Español - Nederlands - Romaneste - Svenska - Italiano
Also available at ZoneO: freeForum -- phpTrafficA -- Linux-tips -- Unixtime Online -- PageRank online
Page generation: 0.031 sec