无法使脚本显示具有西里尔文名称的已创建文件。 PHP

时间:2013-03-17 16:06:12

标签: php

当我创建一个带有西里尔文名称的文件时,它没有在表格中显示其名称。它显示文件存在但名称只是。如果可能的话,我不知道如何让它显示西里尔文件名。

这是脚本:

<?php
echo $_POST['edit'];
$full_path = ".";

$dir = @opendir($full_path) or die("Директорията не може да се отвори.");

while($file = readdir($dir))
{
  if($file == "news-success.php" || $file == "components" || $file == "index-restricted.php" || $file == "index-error.php" || $file == "generalsettings-success.php" || $file == "exampic" || $file == "all_count.txt" || $file == "assets" || $file == "count_vhod.txt" || $file == "count_nachalo.txt" || $file == "index-invalid.php" || $file == "news-delok.php" || $file == "images" || $file == "auth.php" || $file == "php" || $file == "news.php" || $file == "sponsors.php" || $file == "upload" || $file == "js" || $file == "img" || $file == "dashboard.php" || $file == "logout.php" || $file == "ajax" || $file == "prettify" || $file == "log.php" || $file == "css" || $file == "generalsettings.php" || $file == "nachaloadm.php" || $file == "php_errorlog" || $file == "fonts" || $file == "sql.php" || $file == "edit_file.php" || $file == "delete.php" || $file == "create_file.php" || $file == ".." || $file == "index.php" || $file == "." || $file == "edit.php")

  continue;
?> <?php
  echo "<tr><td><a href='$file'>". pathinfo($file, PATHINFO_FILENAME) ."</a></td><td><a href='edit.php?name=$file' class='btn mini purple'><div align='center'><i class='icon-edit'></i>&nbsp;&nbsp;Редактирай</div></a></td><td><div align='center'><a href='delete.php?name=$file' class='btn mini black'><div align='center'><i class='icon-trash'></i>&nbsp;&nbsp;Изтрий</div></a></div></td></tr>";
}

closedir($dir);


?>

此致 丹尼斯赛义德

0 个答案:

没有答案