Welcome Guest, Not a member yet? Register   Sign In
.htaccess - Filenames in URI
#5

[eluser]Lockzi[/eluser]
[quote author="inparo" date="1223266214"]Hmm, just ran a quick test to double check. It's not CI.

Test controller:
Code:
function home($param)
{
    echo $this->uri->uri_string(),'<br />';
    die($param);
}
Prints:
[pre]
/test/home/kass.jpg
kass.jpg
[/pre]

Do you have any router changes that might do this? What happens if you read out $_SERVER['PATH_INFO']?[/quote]

Code:
function view($param, $param2)
    {
        //Pre
        $this->function = "view";
        echo $this->uri->uri_string()."<br />";
        die($param2);

returns the following

Code:
/file_management/view/home/kass_jpg
kass_jpg


Code:
echo $_SERVER['PATH_INFO'];

throws an error...
Quote:Severity: Notice

Message: Undefined index: PATH_INFO

Filename: controllers/file_management.php

Line Number: 22

I haven't touched the routes... Feels like a needle in a haystack! It's driving me mad only because I can't find it.

I have solved it by using post to delete files since URL's are stored in the browser and the URL to a deleted file is not good to be stored Smile

Still curiously mad about it though


Messages In This Thread
.htaccess - Filenames in URI - by El Forum - 10-05-2008, 04:48 PM
.htaccess - Filenames in URI - by El Forum - 10-05-2008, 04:52 PM
.htaccess - Filenames in URI - by El Forum - 10-05-2008, 04:58 PM
.htaccess - Filenames in URI - by El Forum - 10-05-2008, 05:10 PM
.htaccess - Filenames in URI - by El Forum - 10-06-2008, 03:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB