Cakephp: starting controller action as cron work not working

I try to start the controller action as a cron job, but it gives me the message "cannot open input file"

To do this, I used this link, http://bakery.cakephp.org/articles/view/calling-controller-actions-from-cron-and-the-command-line ....

But not working for me, I also tried to host the cron manager in / app / webroot, but still did not work for me.

thanks...

0
cakephp
source share
2 answers

PHP cannot load your cron_dispatcher.php. Make sure your cron entry is correct, i.e. Points to the correct full path of your PHP file. Also make sure that you have the correct permissions. The file may exist, but when PHP runs under cron, reading the file is not allowed.

PS: Have you considered using the CakePHP Shell function instead of this dispatcher? It was designed to use the CLI.

+2
source share

What is the direct action?

wget http://www.example.com/homes/my

in my action wirte your code

install in cpanel ....

-one
source share

All Articles