方法如下:
1、在ci的根目录下建php文件,例如autosendemail.php,内容如下:
<?php file_get_contents("http://localhost/email/send");?>
2、建批处理文件xxx.bat,内容如:“c:\php\php d:\web\autosendemail.php”
3、在controller文件夹建email.php,里面有send方法,就可融入ci体系了。
4、windows计划任务调用xxx.bat,就可以了。
页:
1
[2]