Jump to content
php.lv forumi

Mekleju skriptu


r1lex

Recommended Posts

<?php

if ($handle = opendir('/path/to/files')) {

while (false !== ($file = readdir($handle))) {

echo "$file\n";

}

closedir($handle);

}

?>

Link to comment
Share on other sites

aizmirsu piebilst, ka vajadzetu tadu vizuali pievilcigaku, un ari ta lai failus varetu novilkt, piemeram uzspiezot uz faila nosaukuma vai uz bildites blakus. Ceru ka saprataat. :)

Edited by r1lex
Link to comment
Share on other sites

man ir viens kautcik sakarīgs!

<?php
if ($handle = opendir('faili/')) {
while (false !== ($file = readdir($handle))) {
if (strlen($file) > 4)
{
echo "<center><a href=\"faili/$file\">$file</a></br><br>---------------------------------------------------------------------</center>";
}
}
closedir($handle);
}
?>

shito ieliec index.php failā un uztaisi mapīti faili!

nez negribēju neko mainīt cerams noderēs!

Link to comment
Share on other sites

man ir viens kautcik sakarīgs!

<?php
if ($handle = opendir('faili/')) {
while (false !== ($file = readdir($handle))) {
if (strlen($file) > 4)
{
echo "<center><a href=\"faili/$file\">$file</a></br><br>---------------------------------------------------------------------</center>";
}
}
closedir($handle);
}
?>

shito ieliec index.php failā un uztaisi mapīti faili!

nez negribēju neko mainīt cerams noderēs!

thanx sis normals

Link to comment
Share on other sites

×
×
  • Create New...