3
Contributors
16
Replies
19
Views
7 Years
Discussion Span
Last Post by diafol
0

You write your php script say mycron.php. Then in windows start/programs/accessories/system tools/schedule task, add one task
you may give direct command like

php.exe "c:\apache\htdocs\myweb\myfolder\mycron.php?mypara=1"

you may set time, give userid password.

now windows will take care of rest things

0

thank you for your reply. i have small doubt.
myweb\myfolder\ means? and one thing where i can give my site path ?

0

You might be storing your webpage folder on physcial location say

apache root
c:\program files\apache2\htdcos\

and you may be access it in browser
like
http://localhost/

for cron job you may place your file anywhere in your harddisc, you may also keep it in folder in apache root

Edited by urtrivedi: n/a

0
php.exe "c:\wamp\www\kalpana\mycron.php?mypara=1"

Just so this doesn't go on and on :icon_rolleyes:

Edited by diafol: n/a

0

i am scheduling one task. i have no idea before at this one. thats why i am asking more about this. sorry for that....

start/programs/accessories/system tools/schedule task->
after it is asking "click the program you want windows to run." can i browse dreameweawer?

1

search on your computer for php.exe
you browse to the path or your php.exe files path
then give other inputs
at the end open for advance settings

then "c:\some path\php.exe"
will come add your script name to the end like
"c:\some path\php.exe" "c:\wamp\www\mysite\mycron.php"

press apply

-1

yes i found..this is the path.C:\wamp\php\php.exe.

start/programs/accessories/system tools/schedule task->
after it is asking "click the program you want windows to run." can i browse dreameweawer?

0

Did you do something like this?


Open Task Scheduler > Create New Task

Attachments mul1.png 82.59 KB mul2.png 89.48 KB
This topic has been dead for over six months. 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.