function dbconn
Hello all,
need little help here, so these fuctions need to be mysqli Code:
function dbconn_announce() { and this one Code:
function dbconn($autoclean = false) Code:
function sql_query($query) |
Without doing the rewrite for you, start by changing mysql to mysqli, in the code.
The connection signature changes to this: Code:
mysqli_connect($mysql_host, $mysql_user, $mysql_pass, $mysql_db); Code:
mysql_query("SET NAMES UTF8"); Code:
mysql_select_db($mysql_db) or die('dbconn: mysql_select_db: ' + mysql_error()); Code:
mysqli_query($db, $query); |
also this will not work on seedbox and home pc torrents On cleanups
you will get DB locks on it via mysqli it will only work on PHP 5.6 NOT 7.0 SO ON PHP Code:
|
I have something like this
Code:
function dbconn($autoclean = false) |
what TBDev are u using this would help me with you ?
|
Quote:
:coffee: |
Quote:
Good luck! |
i do get where u are coming from i use mysqli all the time in the code base its set to mysqli but this part not working at all well when it first uploader works ok till clean up.. as someone said above its could be the memory so on but its not nor table locking ive done my checks on this in DB to no locking at all and the memory is all good
i could add this to backend PHP Code:
works ok then stop seeding its still there no good like this |
I presume you have enough space on the partition? DB can lockup if there's no space Look I will have to have a look to really find what is going on.
|
yes i do a alot of it
i was on Debian 8 was working fine seeding and all, and all then they removed it so i had to go with Debian 9 and that when it all started on cleanup.. all the code base is mysqli nps on that everything works on but that part in clean up |
All times are GMT +2. The time now is 05:54. |
Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.