Hi,
I am trying to clean URL with $_SERVER['PATH_INFO'], why nothing comes out when I test it on my localhost?
result:Code:$data = explode('/',$_SERVER['PATH_INFO']); print_r ($data);
Array ( [0] => )
but when i test it with $_SERVER['REQUEST_URI'], then it has some result...
result:Code:$data = explode('/',$_SERVER['REQUEST_URI']); print_r ($data);
Array ( [0] => [1] => folder [2] => file.php?pg=home )
Is it something to do with the configuration in my apache?
Please let me know if u have any idea. Many thanks.
Lau






Bookmarks