Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

xampp php cron jobs on windows xp

Posted on 2014-03-26
5
Medium Priority
?
1,938 Views
Last Modified: 2014-03-31
Is there a way to schedule php files on a xampp install on windows xp similar to cron jobs?
0
Comment
Question by:Starquest321
  • 2
  • 2
5 Comments
 
LVL 35

Accepted Solution

by:
gr8gonzo earned 1000 total points
ID: 39956051
Use the windows scheduler to execute php.exe and pass the script filename and path as an argument.
0
 
LVL 36

Assisted Solution

by:Loganathan Natarajan
Loganathan Natarajan earned 1000 total points
ID: 39956586
Cron jobs are available only in Linux OS. Windows you should use scheduler as @gr8gonzo suggested.
0
 

Author Comment

by:Starquest321
ID: 39956993
Perfect....thanks.

PS - if my script is: cron.php ...what would be the argument to pass? (located in c:\scripts)
0
 
LVL 35

Expert Comment

by:gr8gonzo
ID: 39957587
Php.exe c:\scripts\cron.php
0
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 39958027
You can also create batch file to use your cron and add the batch file into windows scheduler.

if you have not added predefined variable , you need to give full path like,

d:\xampp\php\php.exe d:\xampp\htdocs\prj\index.php"

Open in new window

0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
By, Vadim Tkachenko. In this article we’ll look at ClickHouse on its one year anniversary.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

916 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