I want to execute a PHP insertion webservice at a particular time using a cron job in XAMPP localhost server and Windows 7 OS, can you tell me how to execute it in detail?
1条回答 默认 最新
- duankong8998 2013-06-21 09:14关注
- Open Scheduler (type Sched into the search box and it'll appear)OR go to Start > Programs > Accessories > System Tools > Scheduled Tasks
- Click 'Create Task'.
- The Scheduled Task Wizard will appear. Give the task you wish to generate a name and a brief description if you so wish.
- Click the 'Actions' tab then click 'New'. Leave the top option at its default, which is 'Start Program'.
- In the 'Program/script' box click browse to your favourite browser and select its executable file (eg: firefox.exe)
- In the 'Add arguments' box put the address of your cron.php file, eg: http://www.yourdomain.com/runcron.php
- Go to the 'Triggers' tab and select any time once per day (or whatever frequency you prefer) then fine tune the conditions from within the 'Settings' tab. Done!
Hope this help! Details on here.
PS. you can aslo run on localhost
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥20 创建taro项目,在vscode上能够写跨平台写微信小程序代码
- ¥15 网站出现错误跳转问题
- ¥15 Docker容器里已经安装了ssh,但打包迁移到新机器一直容器一直提示unrecognized service。
- ¥15 综合布线实例设计,就好看好看不恐怖可好滤镜好聚
- ¥15 使用moviepy库视频合并时出错
- ¥30 FLUENT液固传质UDF
- ¥15 怎么看梯度直方图以,怎么判断梯度消失/爆炸,怎么解决
- ¥15 aspnetdll文件访问拒绝
- ¥15 wpf中在模版中寻找元素
- ¥15 MFC平台生成指定圆