tags:

views:

34

answers:

3

Hi,

I want to report sth every new month via email. How can i do that? Assume that no body enters the site in all month.

Sory about my english and i'm new about php.

Thanks B.

+4  A: 

Using a cron job would be the best way.

Luke
A: 

Yes, but at least I know cron job work only for linux systems but i use Windows 7

bhdrkn
Windows has Task Scheduler which does the same thing.
James
Also, you should use "add comment" on Luke's answer not make a new answer. That way everything will be kept together.
James
A: 

On Windows you have to use a Scheduled Task to do this.

See How to schedule a task in Windows 7 for more info.

If it's just a basic php script you want to run, then I would create a simple .cmd file, containing the following :

@echo off
C:\php\php.exe D:\path\to\your\script.php

Save this and add it as a scheduled task (changing paths and filename of the script as you see fit of course).

wimvds