1 (edited by MrDee 2006-04-19 10:14)

Topic: dblayer >> mysql.php - mysql_unbuffered_query doesnt work!

in file mysql.php in line 80 where is  "mysql_unbuffered_query" don't work as it should be, I get error "Cannot find server - The page cannot be displayed", when runs "mysql_query", forum run normaly. Installed is Mysql is 5.x and PHP is 5.x and "mysql_unbuffered_query" function work normaly in other php scripts.

if ($unbuffered) {    
    $this->query_result = @mysql_unbuffered_query($sql, $this->link_id) or die(mysql_error."mysql_unbuffered_query");    
} else {
  $this->query_result = @mysql_query($sql, $this->link_id);
}

Re: dblayer >> mysql.php - mysql_unbuffered_query doesnt work!

Works fine for me. Must be something wrong with your server.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3

Re: dblayer >> mysql.php - mysql_unbuffered_query doesnt work!

Rickard wrote:

Works fine for me. Must be something wrong with your server.

Hoy Rickard, I dont think so, maybe is ver. of php or mysql? mysql_unbuffered_query work fine on my server, I tested, anyway board works now fine but without "mysql_unbuffered_query", is still fast like hell smile smile. Board will have over 13.000 forums and 70.000 users.


Here is server environment:
Operating system: FreeBSD 6.0
PHP: 5.1.2 - Show info
MySQL 5.0.19

on this server runs a lot of php scripts like dating, Blog like google blogger and everything runs well, except your "mysql_unbuffered_query", I got blank page.

Re: dblayer >> mysql.php - mysql_unbuffered_query doesnt work!

Well, there's nothing in the code that would make it behave differently: try removing the @ in front of it and see if you get an error

5

Re: dblayer >> mysql.php - mysql_unbuffered_query doesnt work!

Smartys wrote:

Well, there's nothing in the code that would make it behave differently: try removing the @ in front of it and see if you get an error

well, now works fine, I dont know why, just work now. thanks for all help.