Hi:

I would like to delete all the users of my (employer's) site, whose account is inactive(did not login) for 30 days. I can write something like, "DELETE from usertable where...". I want to run this every night, check regularly and delete the users. I searched on this topic and found about windows task scheduler and unix cron.

But my problem is, I'm not yet done with the web site, I'm still working on it. I dont know whether it will be hosted in a windows or unix server. I can upload all the html and php files once I get the username and password for the host server space. But how will I specify this auto delete script. Will I be able to access the task scheduler of the host machine or what should I do if its a unix machine (I dont know anything abt unix).

As you might have guessed this is my first website and any reply will be of great help.

Thanks
Senthil

    Access to the Task Scheduler depends on your host. Ask them if they allow you access.

    There are many tutorials on how to set up a cron job. I'd suggest you search the net. There's also the man page (short for manual). After you login into your Linux machine, type "man cron" and it'll give you all the info you need.

    Diego

      Write a Reply...