crontab do php, crontab execute PHP
Under Linux we often have to write scheduled tasks, generally we will use the crontab. For Crontab, refer to the following document:
Http://www.cnblogs.com/peida/archive/2013/01/08/2850483.html
It is important to be clear that you must use fully qualified names when executing PHP files.
For example:
cd/var/www/html/lws/conf &&/root/php-5.0/bin/php index.php
If you write
PHP index.php
is often problematic, both commands and scripts use fully qualified names.
Not only PHP, but many others will have this problem.
In a file called inside a PHP script, you should also use an absolute path rather than a relative path.
http://www.bkjia.com/PHPjc/1130665.html www.bkjia.com true http://www.bkjia.com/PHPjc/1130665.html techarticle crontab Execute PHP problem, crontab execute PHP under Linux we often have to write scheduled tasks, generally we will use the crontab. For Crontab, refer to the following document:/HTTP/...