It works! getAllMessages e chat.php -sabas