Главная страница


ru.unix

 
 - RU.UNIX ----------------------------------------------------------------------
 From : Sergey Sholokhov                     2:5030/675.53  15 Feb 2003  19:51:17
 To : Slava Astashonok
 Subject : How to....
 -------------------------------------------------------------------------------- 
 
 
 14 Feb 2003 14:51, you wrote to Alex Sednev:
 
  SA> Alex Sednev wrote:
  >> @RealName Алексей Седнев
  >> В ПХП есть стандарный кусочек кода:
  >> $d = dir("/etc");
  >> echo "Handle: ".$d->handle."<br>\n";
  >> echo "Path: ".$d->path."<br>\n";
  >> while (false !== ($entry = $d->read())) {
  >>     echo $entry."<br>\n";
  >> }
  >> $d->close();
  >>
  >> как сделать так, чтобы пользователь не мог смотреть списки файлов
  >> за пределами своей домашней дириктории. Точно знаю как-то это
  >> делают.
  >>
  >>
 
  SA> open_basedir: Limit the files that can be opened by PHP to the
  SA> specified directory-tree, including the file itself... Это подойдет?
 
 Всеравно через `{unix shell command}` залезут.
 
 --
 WBR, Sergey A. Sholokhov.    | ICQ : 72994428
                              | JID : hun7er@jabber.ru
  < GNU/Linux system inside > | mail: hun7er@sutd.ru
                H U N 7 E R   | http://www.livejournal.com/~hun7er/
 
 ... XMMS: Silence...
 --- GoldED+/LNX 1.1.5-CVS
  * Origin: LX7-STATION (2:5030/675.53)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 How to....   Alex Sednev   13 Feb 2003 20:25:09 
 Re: How to....   Slava Astashonok   14 Feb 2003 15:51:04 
 Re: How to....   Alex Sednev   15 Feb 2003 02:32:00 
 Re: How to....   Slava Astashonok   15 Feb 2003 05:14:38 
 How to....   Sergey Sholokhov   15 Feb 2003 19:51:17 
Архивное /ru.unix/175253e4e622d.html, оценка 1 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional