I know how to use that man, the thing that I'm searching for months now and can't find it is how to ENFORCE changes made in sql. Lineage 2 server caches ALL the sql data even if a user is NOT online, and then somehow it manipulates the cache system and forces server to re-read data from sql.I just can't figure out how to do that on php....
Thanks for your time
Quote:
|
Originally Posted by PhDoc
Quote:
|
Originally Posted by astranger
man can you please give me an example on php on how to use that ?
|
Lazzy?
Quote:
|
Originally Posted by reijii
[php:1:4f6c359507]
$fp = fsockopen("xx.xx.xx.xx", 2009, $errno, $errstr);
if (!$fp) {
echo "$errstr ($errno)
\n";
} else {
$out = "5"."\t".$char_name."\t"."\r\n";
fwrite($fp, $out);
stream_set_timeout($fp, 2);
$answ = fgets($fp,8);
if ($answ==1) {
print"Character is successfully kicked.";
} else {
print"Error.";
}
fclose($fp);
} [/php:1:4f6c359507]
|
|