Solved

xampp php cron jobs on windows xp

Posted on 2014-03-26
5
1,793 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 34

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 34

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

773 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