Simple Chat with php
- by MatrixOnTheLine
in chat.php
$data = getCache($room);
while(1){
if($data == false || empty($data[1]) )
sleep(10);
else
break; }
in sendmemcache.php
$value = $_GET['value'];
setCache($room,array($username,$value));
However, in infinite loop $data's value never change.
I send $value with manuel for sendmemcache.ophp. sendmemcache.php never finish its proces. (Always "Transferring data ....")
How can i resolve this ?