Welcome Guest, Not a member yet? Register   Sign In
Problem with cronjob
#3

(This post was last modified: 07-16-2015, 12:19 PM by Wouter60.)

The problem is not that my index.php couldn't be found. That seems to work fine.
The e-mail I got, contains a complete html dump of my website's home page, like this:
Code:
X-Powered-By: PHP/5.3.29
Set-Cookie: ci_session=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; path=/; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-type: text/html; charset=UTF-8

<!DOCTYPE html>
<html lang="nl">
<head>
...
</head>
<body>
...
</body>
</html>
So, the method cleanup inside my cronjobs controller is not executed.
My Cronjobs.php:
PHP Code:
<?php
class Cronjobs extends CI_Controller {

  function __construct()
  {
    parent::__construct();
    if (!$this->input->is_cli_request()) show_error('Direct access is not allowed');
  }

  public function cleanup()
  {
    ...
  }


I also tried the -f parameter in front of the path to index.php, but same result...
Reply


Messages In This Thread
Problem with cronjob - by Wouter60 - 07-15-2015, 10:19 PM
RE: Problem with cronjob - by skunkbad - 07-15-2015, 11:25 PM
RE: Problem with cronjob - by Wouter60 - 07-16-2015, 11:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB