Welcome Guest, Not a member yet? Register   Sign In
passing a path in the url as argument
#1

[eluser]newtonianb[/eluser]
How can I pass a path to a file using the URI assoc

$data = $CI->uri->uri_to_assoc(3, null);

http://localhost/index.php/home/index/fi...y\file.xml

that does not workout all the backslash get converted to forward slash to then it only captures the first portion "shared" gets saved in my variable.

I checked my config.php file and backlash seems to be allowed ...
#2

[eluser]wh1tel1te[/eluser]
You could encode the path to base64, which will pass nicely into the URI, then in your filearguement method decode it back to the path.




Theme © iAndrew 2016 - Forum software by © MyBB