基本概念 Crontab 类似于Windows 里的task schedule ,是一种定时执行工具 .能够在确定的时间执行确定的任务(脚本)。 Crontab 是linux系统里的一个守护进程 ,会随着系统的启动而启动。 基本操作 /sbin/service cron start 启动crontab /sbin/service cron stop 停止crontab…
判断存在,框架加载必用函数
(1)php判断系统函数或自己写的函数是否存在 bool function_exists ( string $function_name ) 判断函数是否已经定义,例如:
1 2 3 4 5 |
if(function_exists('curl_init')){ curl_init(); }else{ echo 'not function curl_init'; } |
(2)php判断类是否存在 bool class_exists ( string $class_name [, bool $autoload = true ] )…