(05-18-2017, 07:36 PM)kilishan Wrote: This is not a limitation of CodeIgniter, but a limitation of PHP and your web server. On the CLI certain things are simply not available. There's no HTTP request so anything to do with that will be non-functional, including some $_SERVER settings that would come from that. Sessions don't work.
That makes sense, thanks. Is there something about the base_url() function that relies on these $_SERVER settings being present? I thought hard-coding the $config['base_url'] value in my config.php would do the trick, but my links remain broken despite this.
As a fallback I am able to call my script using curl, but I would prefer the CLI method over curl if I can get it working.