Solved

xampp php cron jobs on windows xp

Posted on 2014-03-26
5
1,774 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
Comment Utility
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
Comment Utility
Cron jobs are available only in Linux OS. Windows you should use scheduler as @gr8gonzo suggested.
0
 

Author Comment

by:Starquest321
Comment Utility
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
Comment Utility
Php.exe c:\scripts\cron.php
0
 
LVL 36

Expert Comment

by:Loganathan Natarajan
Comment Utility
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now