I have a php built website with a mysql database.
I need an sql function to run once per every month.
How would i go about doing this?
EDIT
Really sorry for not making it clear. I don’t have a linux VPS. Just a basic hosting service with php and mysql capabilities. I am looking into purchasing a “real” server in the future but for now, are there any onther methods?
Everyone seems to want you to use a cronjob.
Problem with that is that is requires superuser access to the server.
I would suggest using a MySQL event instead.
Note that this does require superuser access in the MySQL database.
See: http://dev.mysql.com/doc/refman/5.1/en/events.html
First make sure the event scheduler is enabled:
You can set up an event as follows: