I have a problem, I try to bring the names of the files that I have in a folder but not that it is, I have the following code and it pulls but I am accessing 'C:' but what I need is I want to bring the files that I have in my assets that would be my base_url to then access assets and when I put it, it marks me route error.
$carpeta = 'c:\MAMP';
if(is_dir($carpeta)){
if($dir = opendir($carpeta)){
while(($archivo = readdir($dir)) !== false){
if($archivo != '.' && $archivo != '..' && $archivo != '.htaccess'){
echo '<li><a target="_blank" href="'.$carpeta.'/'.$archivo.'">'.$archivo.'</a></li>';
}
}
closedir($dir);
}
}