|
| |||||||||
| Tags: cron, executable permissions, php script, syntax, web language |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Running PHP Scripts with Cron
Can i run a PHP script on cron. If yes then what are the syntax need to define in code as a Web language. If PHP scripts with no executable permissions then what will be the command in corn line. |
|
#2
| ||||
| ||||
| Re: Running PHP Scripts with Cron
Cron is a simple Linux module which allow user to run command at regular interval of time. Cron is normally available on all Unix and Linux distributions; if you cannot access it, contact your root or server administrator.Cron enables users to schedule jobs (commands or shell scripts) to run automatically at a certain time or date. It is commonly used to perform system maintenance or administration. |
|
#3
| |||
| |||
| Re: Running PHP Scripts with Cron
Run a PHP script on cron : If your PHP scripts do not have executable permissions, 644 or -rw-r--r-- (which is different code for tread permission and write permission ) for example, then as part of the command portion of the cron line, you must specify the php interpreter and pass it the filename of the PHP script. |
|
#4
| |||
| |||
| Re: Running PHP Scripts with Cron
With cron jobs, you can exactly plan when a certain command is to be executed. Sure you can create simple scripts for each job and run them all separately via a Unix crontab, but this self-contained script allows running unlimited jobs all from one file. |
|
#5
| ||||
| ||||
| Re: Running PHP Scripts with Cron
To get a crontab to call a php script You'll need some basic knowledge of unix shell commands.Users can have their own individual crontab files and often there is a systemwide crontab file (usually in /etc or a subdirectory of /etc). |
|
#6
| ||||
| ||||
| Re: Running PHP Scripts with Cron
Scripts to emulate crontab : Pseudocron, a simple PHP script and Fake Cron (you don't have access to Cron, then this CGI will help you by imitating Cron) Yes, you can run in a crontab in php. What you need is php compiled as a cgi (you can have both cgi and apache module). |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Running PHP Scripts with Cron" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Macbook Pro is freezing on ‘Running Package Scripts’ | ChittiBabu | Portable Devices | 2 | 4 Weeks Ago 08:59 PM |
| Running cron on linux even scheduler | Sartaj^Crown | Operating Systems | 5 | 03-01-2011 12:05 AM |
| Running unix commands within Perl Scripts | Ash maker | Software Development | 5 | 09-03-2010 04:17 PM |
| Scripts not running in crontab | Frasier | Operating Systems | 6 | 22-10-2008 02:33 PM |
| login Scripts not running | George Schneider | Window 2000 Help | 10 | 24-01-2008 03:08 PM |