Welcome Guest, Not a member yet? Register   Sign In
CLI access missing variables
#3

(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.
Reply


Messages In This Thread
CLI access missing variables - by Sam - 05-18-2017, 03:15 PM
RE: CLI access missing variables - by kilishan - 05-18-2017, 07:36 PM
RE: CLI access missing variables - by Sam - 05-19-2017, 11:14 AM
RE: CLI access missing variables - by rtenny - 05-26-2017, 07:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB