Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php opendir


<?php
$dir = "/etc/php5/";

// Open a known directory, and proceed to read its contents
if (is_dir($dir)) {
    if ($dh = opendir($dir)) {
        while (($file = readdir($dh)) !== false) {
            echo "filename: $file : filetype: " . filetype($dir . $file) . "
";
        }
        closedir($dh);
    }
}
?>

Comment

PREVIOUS NEXT
Code Example
Php :: laravel controller create command in a folder 
Php :: laravel blade @selected 
Php :: template literals php 
Php :: concat in php 
Php :: user location using php 
Php :: get file extension php 
Php :: laravel carbon get day name 
Php :: wordpress create shortcode 
Php :: laravel validate date 
Php :: wordpress display post categories 
Php :: php bcrypt password verify 
Php :: Laravel Model Create Artisan Commant 
Php :: ver version de php en linux 
Php :: Diferencia entre dias PHP 
Php :: phpspreadsheet CellProtection 
Php :: php number to words 
Php :: php call class method dynamically 
Php :: laravel factory 
Php :: throwable php 
Php :: ini_set php 
Php :: how to download image from url from a particular div in php 
Php :: PHP similar_text — Calculate the similarity between two strings 
Php :: array search multidimensional php 
Php :: merge two objects php laravel 
Php :: php check if parameter exists in url 
Php :: create email template php 
Php :: how to check if all values in an array are equal php 
Php :: php timeout 
Php :: json stringify to php array 
Php :: php assign if not null 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =