powered by simpleCommunicator - 2.0.51     © 2025 Programmizd 02
Форумы / PHP, Perl, Python [игнор отключен] [закрыт для гостей] / PHP files
1 сообщений из 1, страница 1 из 1
PHP files
    #32516922
gda
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
<html>

<head>
  <title></title>
</head>

<body>

<?
    function uniqueRename($dir)
    {
        // directoriu fisierelor ce trebuiesc renumite
        $open = opendir($dir);

     	// creare directoriului
        $tempDir = $dir.rand().'temp';
        mkdir($tempDir,'0777');

        // adaugare la directoriu '/'
        $tempDir = $tempDir.'/';

        while (false !== ($files = readdir($open)))
        {
	    	$oldfilename = $dir.$files;


            if (is_file($oldfilename))
            	copy($oldfilename,$tempDir.$files);
        }
        closedir($open);
    }

    uniqueRename("E:/MOBIAS/");
?>

</body>

</html>

pocemuto cogda zapuscaiu v E:/MOBIAS/ sozdaiutsea dve popciki XXXtemp, vihodit 4to uniqueRename("E:/MOBIAS/"); rabotaet dva raza, pomoghite pocemu
...
Рейтинг: 0 / 0
1 сообщений из 1, страница 1 из 1
Форумы / PHP, Perl, Python [игнор отключен] [закрыт для гостей] / PHP files
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]