Portál AbcLinuxu, 4. prosince 2025 13:33
isDir() && !$dir->isDot() && $dir != 'Kontakt') {
print "$dir";
foreach (new DirectoryIterator($dir->getPathname()) as $file) {
if (!$file->isDot() && $file != 'index.php') {
$prom=explode(".", $file);
$f=$prom[0];
print "$f";
}
}
print "";
}
}
$Directory = new DirectoryIterator('DB/content');
foreach ($Directory as $dir) {
if ($dir == 'Kontakt') {
print "$dir";
foreach (new DirectoryIterator($dir->getPathname()) as $file) {
if (!$file->isDot() && $file != 'index.php') {
$prom=explode(".", $file);
$f=$prom[0];
print "$f";
}
}
print "";
}
}
?>
system("echo \$LANG"); ?header ("Content-Type: text/html; charset=UTF-8"); ?<meta http-equiv="content-type" content="text/html; charset=utf-8" /> ?AddDefaultCharset kodovaniPokud ano zkuste ji zrusit. Restartujte apache a zkuste skript.
print mb_detect_encoding($dir); co to písne na adresář s diakritikou.
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> a hlavičku server pošle jakou ?explode() ? pokud ano, zkuste to bez ní vypsat.
print system('ls "'.$dir->getPathname().'"') . '<br />';
print system('ls /tests/kuk');'echo $LANG), jsem to zkoušel na systému s cs_CZ.UTF-8
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.