Operating System: Windows 2003 Server
Using XAMPP
Now , I have to develop a Scheduler for these reports, For Example I have 3 Reports.
These reports are PHP Files

Report1.php
Report2.php
Report3.php

I want to send them(Execute them) automatically as follows

Report1.php on Monday 9AM
Report2.php on Friday 9AM
And Report 3 on Saturday 12PM.

Do you have any Idea?

if you have access to windows server.
You can create schedule task.
Accessories->system tools->schedule task
create new task
When it ask for application.
1) browse to php folder and select php.exe
2) then give space and give full path of report1.php
3) set time

repeat 1-3 steps for other reports.

if you have access to windows server.
You can create schedule task.
Accessories->system tools->schedule task
create new task
When it ask for application.
1) browse to php folder and select php.exe
2) then give space and give full path of report1.php
3) set time

repeat 1-3 steps for other reports.

I am using XAMPP and there is no PHP.EXE , from where I can found it?

Also I have another problem, as I am using PHP Mailer , I want to ADD CC address but

http://phpmailer.worxware.com/index.php?pg=methods

The above link I want to add cc

AddCC($address, $name = "")

But it requires

Adds a "Cc" address. Note: this function works with the SMTP mailer on win32, not with the "mail" mailer.

I am not sure about the ADD CC Function. Because I directly send mail, means I do not use class.

Now about automation of mail
So I explained in my post that on widows server, You can add scedule task.
Search microsoft site for details.

Cron are genrally utility for linux server cron (linux), schedule task (windows).
Cron commands will not work on windows.

Now you use file search facility of windows. in xamapp folder there might be php folder where you can find php.exe, locate php exe in your computer, I am sure you will find it.

For cc on your own you may try

$mail->addCustomHeader("Cc: {$yourccmailid1},{$yourccmailid2}");

if you have access to windows server.
You can create schedule task.
Accessories->system tools->schedule task
create new task
When it ask for application.
1) browse to php folder and select php.exe
2) then give space and give full path of report1.php
3) set time

repeat 1-3 steps for other reports.

Please check its giving error

give whole path of your script

php c:\mywebroot\myfolder\myreport\report1.php

For cc on your own you may try

$mail->addCustomHeader("Cc: {$yourccmailid1},{$yourccmailid2}");

I try this , it worked , but cc person not get the email... :(

Kindly try on phpmailer forum, I am not sure about the error.

give whole path of your script

php c:\mywebroot\myfolder\myreport\report1.php

it give error

you continue with
php only, do not give any parameter,

then completing creating task, right cick on it and open properties

you will find RUN BOX "C:\Program Files\PHP\php.exe"

CHANGE IT TO (give appropriate path)

"C:\Program Files\PHP\php.exe" "C:\WEBROOT\YOURFOLDER\YOURREPORT\report1.php"

you continue with
php only, do not give any parameter,

then completing creating task, right cick on it and open properties

you will find RUN BOX "C:\Program Files\PHP\php.exe"

CHANGE IT TO (give appropriate path)

"C:\Program Files\PHP\php.exe" "C:\WEBROOT\YOURFOLDER\YOURREPORT\report1.php"

Thanks , You solved my problem