Number of cronjobs

Allard

New member
Joined
Mar 18, 2011
Messages
25
Hi,

I have a question. If I wil get the numbers of databases, I do it with te command 'CMD_API_SHOW_USER_USAGE'. But I can't get the number of cronjobs. How can I do this?
 
Sorry for the dubble post. But I have resolved it. Here is my script:

PHP:
        public function NumbrCronjobs()
        {
                  global $sock; 		 
				  $sock->query('/CMD_API_CRON_JOBS');
				  $result = $sock->fetch_parsed_body();
				  
				  switch ($result)
				  {
					  case (empty($result)):	
					  		 print 0;
							 break;
					  case ($result['error'] == 0):
							 echo count($result);
							 break;
					  default:
					  		 print 0;
				  }
				  
			}
 
Back
Top