Mailinglisten-Archive |
Hi Christoph,
da wird Dir nix anderes uebrig bleiben, als das
Ergebnis von basename($path) zusaetzlich abzupruefen:
<?
$AA = array(
'http://home.npf/fast',
'http://home.npf/fast/',
'http://home.npf/fast/index.php',
'/_home/htdocs/fast',
'/_home/htdocs/fast/',
'/_home/htdocs/fast/index.php');
foreach($AA as $path) {
echo $path.' - '.dirname($path).' - '.
((is_dir(basename($path))) ? 'Y' : 'N')."\n";
}
?>
Eventuell kannst Du dazu auch noch einen Bugreport
schreiben. Vielleicht kuemmert sich ja jemand mal darum.
m. b. G. Norbert
_____________________
normal: 02686-987103
Notruf: 0177-2363368
---------------------
e.o.m.
php::bar PHP Wiki - Listenarchive