Ben uzantısı olmadan bir dizin dışında dosya çekmeye çalışıyorum.
Ben aşağıdaki ile yolumu yoluyla kludging ediyorum:
foreach ($allowed_files as $filename) {
$link_filename = substr(basename($filename), 4, strrpos(basename($filename), '.'));
$src_filename = substr($link_filename, 0, strrpos($link_filename) - 4);
echo $src_filename;
}
...But that can't work if the extension string length is more than 3. I looked around in the PHP docs to no avail.