Unvincible
Member
- Joined
- Sep 1, 2015
- Messages
- 44
- Reaction score
- 10
Hi, i have OTclient edited with my own functions. but im having problems to make auto update works, maybe someone can help me since im bad with php.
OTclient update is working, but need to update every time try to login server.
PHP:
<?php
function file_crc($file)
{
$file_string = file_get_contents($file);
$crc = crc32($file_string);
return sprintf("%u", $crc);
}
$dat = '/var/www/update/Tibia.dat';
echo 'Tibia.dat '.file_crc($dat).'';
?>
OTclient update is working, but need to update every time try to login server.