[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

task scheduler php

Posted on 2010-03-29
3
Medium Priority
?
419 Views
Last Modified: 2012-05-09
in windows server 2008



'task scheduler'
of which i run a php script
drop down menu 'start a program'
program/script: c:\file.php

but what do i put for

add arguments (optional)
start in (optional)
0
Comment
Question by:rgb192
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
daj_uk earned 2000 total points
ID: 29019633
Add Arguments would be used if you wanted to pass anything extra to the program,  but it depends if the file.php is expecting anything else.  If not, leave blank

Start in -- is a folder to move to before the script is run -- again, if the script does not care where it runs from it is not important.

You may need to change program/script to php.exe and arguments to c:\file.php depending on how your system is configured.  You can not usually run a .php file.  You need to run an executable which then runs the script.  So in my example we run php.exe which passes c:\file.php as the parameter (i.e. the script to run)
0
 
LVL 1

Author Comment

by:rgb192
ID: 29034167
so

add arguments (optional)
file.php

program/script:
php.exe


what is
start in (optional)
0
 
LVL 1

Author Closing Comment

by:rgb192
ID: 31708618
thanks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
Suggested Courses

591 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question