Hah thanks, it works 😃
I overlooked your code...
if (is_dir($completepath)) {
# its a dir, recurse.
$html .= recursedir($downloads.'/'.$file);
//print "<a href='$url/$downloads/$file'>$downloads/$file</a><br>\n";
} //end if
else {
# its a file.
$html .= "<a href='$url/$downloads/$file'>$downloads/$file</a><br>\n";
}
} //end while
return $html;
} //end function
I understand the $html values make it so that the recursedir() is no empty string anymore? (or however you say it :mad: )
Also you said you fixed the $url... i noticed you put in 'global $url;'
But when i tested it without, the url was just fine... So what does the global do then? since it seems it doesnt actually make any diference? or am i missing something here 🙂
And yes i know the $downloads and $url is headed out to the client but for the people who come on my site most dont even know how to view the source of the page... and aslong as i do not put in a echo $downloads; or whatever it doesnt show...
anyway, thanks for helping me out that quick 😃 😃