Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Verzeichnis einlesen php

<?php
// Der Punkt steht für das Verzeichnis, in der auch dieses
// PHP-Programm gespeichert ist
$verzeichnis = ".";
echo "<ol>";

// Test, ob es sich um ein Verzeichnis handelt
if ( is_dir ( $verzeichnis ))
{
    // öffnen des Verzeichnisses
    if ( $handle = opendir($verzeichnis) )
    {
        // einlesen der Verzeichnisses
        while (($file = readdir($handle)) !== false)
        {
            echo "<li>Dateiname: ";
            echo $file;

            echo "<ul><li>Dateityp: ";
            echo filetype( $file );
            echo "</li></ul>
";
        }
        closedir($handle);
    }
}
echo "</ol>";
?>
Comment

PREVIOUS NEXT
Code Example
Php :: Add Text Before the Product Title 
Php :: php How to add custom button in wordpress admin section 
Php :: laravel vendor/laravel/framework/src/Illuminate/View/Compilers/Compiler.php:36 
Php :: The uploaded file exceeds the upload_max_filesize directive in php.ini. 
Php :: laravel search multiple tables 
Php :: softDelete laravel8 
Php :: magento2 get full details of order collection 
Php :: php undefined index meaNING 
Php :: create a laravel project 
Php :: custom timestamp column laravel 
Php :: laravel fontawesome 
Php :: EntityManager get repository 
Php :: laravel using username instead of email 
Php :: string between two strings 
Php :: php foreach loop 
Php :: laravel localization 
Php :: laravel module package 
Php :: php url variables 
Php :: remove behind comma php 
Php :: configuration laravel dompdf 
Php :: get return value from another function laravel 
Php :: laravel logout all users 
Php :: alias to change php version on ubuntu 
Php :: api symfony 4 @ApiResource 
Php :: extract text before last space php 
Php :: Method IlluminateDatabaseEloquentCollection::delete does not exist. 
Php :: if home else php wordpress 
Php :: php array push with key 
Php :: Predefined Constants php 
Php :: change verify email template laravel 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =