I’m looking for a way of refreshing a PHP include using jQuery.
I had a go but needed to re-include the database config file which isn’t what I wanted.
Is there a nice easy way of including and auto refreshing a file every 10 seconds?
Any help would be great,
Thanks!
There are no “PHP includes”
However you can poll for new entries into your element every 10 seconds by using this code
where “new_entries.php” gives you fresh news from your database