Is that possible?
I'd like to have a JavaScript timer using SetInterval() call a PHP function..
Any idea on how to do that, if it's possible as well?
PHP runs on the server, not the client. The only way a Javascript program can call anything on the server is by requesting a page from it. Search these forums for more details; the question has been asked many times in the past already.