简体   繁体   中英

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.

Thanks B.

使用cron作业将是最好的方法。

是的,但至少我知道cron作业仅适用于linux系统,但我使用Windows 7

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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM