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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.