phpboy06 Posted February 26, 2011 Share Posted February 26, 2011 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.. Quote Link to comment Share on other sites More sharing options...
trq Posted February 26, 2011 Share Posted February 26, 2011 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. Quote Link to comment Share on other sites More sharing options...
litebearer Posted February 26, 2011 Share Posted February 26, 2011 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 Quote Link to comment Share on other sites More sharing options...
phpboy06 Posted March 2, 2011 Author Share Posted March 2, 2011 Thanks a lot guys. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.