PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Troubleshooting (http://www.phpdig.net/forum/forumdisplay.php?f=22)
-   -   Problems with flush() (http://www.phpdig.net/forum/showthread.php?t=94)

uruloki 09-26-2003 05:11 AM

Problems with flush()
 
Sorry for my english, I'm spanish. I work over win2000/IIS with PHP 4.3.0 and MySQL 3.23.55. I have been working on your "motor search", adapting to our requirements. I have the problem that sometimes when i'm updating and at the end of the process, the mysql service give me an exception and erases/corrups some tables.
I looked for the problem an it occurs at the end of the spider process when it calls the flush() function.

the code:
...
//display something to avoid browser-side timeout
echo "Entrada -> Liber**** el Buffer.<br />";
flush();
echo "Salida -> Liber**** el Buffer<br />";
}
}
unset($lien);
echo $br;
.....

If you notice any problem like this one, answer this post.
Thanks
PHPDIG rules! (I hope you understand me ;) )

uruloki 09-26-2003 09:24 AM

I think the answer is in MySQL version
 
Maybe bug problems with MySQL version, I have instaled the last one a runs correctly. What's your opinion?

Charter 09-26-2003 04:34 PM

Hola. My initial guess would be that there was some sort of timeout issue. The flush command is there just to prevent the browser from timing out. There are some issues about flush listed at www.php.net. Perhaps one of those issues was causing the problem? Do you happen to have the text from the MySQL exception, along with what tables were affected?


All times are GMT -8. The time now is 10:39 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.