Welcome Guest, Not a member yet? Register   Sign In
realpath vs pathinfo
#1

[eluser]xwero[/eluser]
In the index.php you can find
Code:
if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE)
{
    $system_folder = str_replace("\\", "/", realpath(dirname(__FILE__))).'/'.$system_folder;
}
why not use
Code:
$system_folder = str_replace('\', '/',pathinfo(__FILE__,PATHINFO_DIRNAME)).'/'.$system_folder;
Is the pathinfo less trustworthy than realpath?


Messages In This Thread
realpath vs pathinfo - by El Forum - 03-05-2008, 04:24 AM
realpath vs pathinfo - by El Forum - 03-05-2008, 09:01 AM
realpath vs pathinfo - by El Forum - 03-05-2008, 09:17 AM
realpath vs pathinfo - by El Forum - 03-05-2008, 09:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB