I have an index.php that updates every second user sessions:
[Index.php (before )]
(sql query... // $row is the result) $_SESSION['name'] = $row->name; $_SESSION['mail'] = $row->mail; $_SESSION['status'] = $row->stat; $_SESSION['cf'] = $row->cf;
All functions of the site using any session are usually charged if there is any change in the database (MySQL). What I would like is to update the body of index.php () without reloading the page.
That is, if I open the index.php file and have nothing between the and editing the file I put any text after this a second, carrying the text without having to press F5 or take a location.reload ().
Is it possible? Thank you.