Jump to content

PHP with CRON


phpboy06

Recommended Posts

I am having my internship, and i was asked to automate the uploading of file and store the data to MySQL every 8:00am. i've read a lot of articles about crontab/cronjob/php:cron. but i am wondering what is a cron.php and what codes/scripts in that file. i also want to know what is .BAT for. do you have any steps and scripts for my problem? thanks alot..  :D

Link to comment
https://forums.phpfreaks.com/topic/228884-php-with-cron/
Share on other sites

Cron has nothing to do with though you can use it to execute php script. Cron is simply a scheduler for Linux designed to execute commands at a specific time. Those commands could be set to execute PHP scripts, shell scripts, whatever.

 

.bat files are a type of script used on windows.

Link to comment
https://forums.phpfreaks.com/topic/228884-php-with-cron/#findComment-1179881
Share on other sites

1. windows task scheduler (wts) set to ftp your file - http://www.isinc.com/2008/11/19/using-windows-xp-task-scheduler-to-automate-an-ftp-upload/

2. wts then starts browser pointed to script on server that reads the data and updates the db table - http://forum.soft32.com/win4/Scheduling-task-open-web-page-ftopict207974.html

 

 

Link to comment
https://forums.phpfreaks.com/topic/228884-php-with-cron/#findComment-1179947
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.