Welcome Guest, Not a member yet? Register   Sign In
Command line usage and passing arguments with slashes
#1

[eluser]Unknown[/eluser]
I am trying to use code igniter on the command line. I am using it as follows:

php index.php controller_name function_name /path/to/file/file.txt

However codeigniter does not pass the entire argument, it splits it using the slash into an array and passes that instead.

Is there any way to get codeigniter to not do this? I really don't want to have to urlencode my file path when using CLI. Also I don't want to implode the array it passes to construct the file path.


Messages In This Thread
Command line usage and passing arguments with slashes - by El Forum - 09-28-2011, 05:46 AM
Command line usage and passing arguments with slashes - by El Forum - 06-09-2012, 04:37 AM
Command line usage and passing arguments with slashes - by El Forum - 07-25-2012, 03:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB