0

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?

3
Contributors
14
Replies
17
Views
6 Years
Discussion Span
Last Post by sahiljariwala
0

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.

0

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?

0

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.

0

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

Attachments error.jpg 39.29 KB
0

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... :(

0

give whole path of your script

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

it give error

Attachments Error-new.png 110.06 KB
0

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"

0

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

Attachments Error-new.png 69.51 KB
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.