Solved

xampp php cron jobs on windows xp

Posted on 2014-03-26
5
1,820 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 35

Accepted Solution

by:
gr8gonzo earned 250 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 250 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

726 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