PHP/String/chdir — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 10:07, 26 мая 2010
chdir() function changes to the file directory.
<source lang="html4strict">
Its syntax is: int chdir (string directory) <?
$newdir = "book"; chdir($newdir) or die("Could not change to directory ($newdir)"); $dh = opendir("."); print "Files:"; while ($file = readdir($dh)) : print "$file
"; endwhile; closedir($dh);
?>
</source>