0 * * * * /usr/local/bin/php -q /home/ayakar/public_html/cron/saatlik-bakim.php
Yukardaki kod satırında renklerin açıklaması:
Yeşil: dosyanın ne kadar sıklıkla çalıştırılacağı.
Mavi: PHP yorumlayıcı yolu.
Siyah: Php parametresi.
Turuncu: Çalıştırılacak dosyanın tam yolu.
Dosyanın ne kadar sıklıkla çalıştırılacağı:
* * * * * => Execute every minute
0 * * * * => Execute every Hour
0 0 * * * => Execute every mid-night
0 0 0 * * => Execute every Month
0 0 0 0 * => Execute every Weekday
Php parametreleri:
-a Run interactively
-b
|
Bind Path for external FASTCGI Server mode
-C Do not chdir to the script's directory
-c
| Look for php.ini file in this directory
-n No php.ini file will be used
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-f Parse . Implies `-q'
-h This help
-i PHP information
-l Syntax check only (lint)
-m Show compiled in modules
-q Quiet-mode. Suppress HTTP Header output.
-s Display colour syntax highlighted source.
-v Version number
-w Display source with stripped comments and whitespace.
-z Load Zend extension .
0 yorum:
Yorum Gönder