Passing in URL as parameter in CLI |
Hello. I'm using CI 3.0 as a backend only system to handle some tasks.
I'd like to run a few controllers with the CLI via cronjobs but I'm having an issue passing in a URL as a parameter. So my controller function looks something like this: PHP Code: runProcess($url) { Any ideas on how to pass in a full URL?
That's because CodeIgniter in CLI mode also allows slashes as parameters separator. Use url encoding/decoding
I'm having trouble executing cronjobs even with a very basic setup of controller and method.
Like this: Code: /bin/php ./index.php cronjobs cleanup Code: /bin/php ./cronjobs/cleanup.php Would it do any good if I formatted my CI cronjob like this: Code: /bin/php ./index.php/cronjobs/cleanup |
Welcome Guest, Not a member yet? Register Sign In |