Php, Mailing Every Month
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.
T开发者_如何转开发hanks B.
Using a cron job would be the best way.
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).
Yes, but at least I know cron job work only for linux systems but i use Windows 7
精彩评论