David's Free Code Snippits
Php, Html, Css, Javascript Snippits...
» Categories «
Ajax
Command
Cronjob
Css
Csv
Curl
Easysiteplugins
Expressions
Functions
Htaccess
Html
Javascript
Links
Mixed
Mysql
Notes
Other
Paypal
Php
Phparrays
Security
Sessions
Xml
Cronjob (Found:
2
)
1. Another CronJob Example in Cpanel
Syntax: Type Base/Location/To/Php/File Example Command: php /home/YOUR CPANEL USERNAME/public_html/location/to/php_file_to_run.php //////////////////////////////////////// Example Command: php /home/YOUR CPANEL USERNAME/public_html/location/to/php_file_to_run.php Usage: php -f <file> Or: php <file> -a Run interactively -C Do not chdir to the scripts directory -c <path>|<file> 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 <file> Parse <file>. 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 <file> Load Zend extension <file>
2. Example Codes
* Note: This method will only work if your server allows WGET or GET!
* You will receive a "Permission Denied" error!
wget -O /dev/null http://www.yourdomain.com/script.php wget -O /dev/null http://www.yourdomain.com/folder/folder/script.php