Horje
list all files in directory php Code Example
list all files in directory php
$path    = './';
$files = scandir($path);
$files = array_diff(scandir($path), array('.', '..'));
foreach($files as $file){
  echo "<a rel="nofollow" href='$file'>$file</a>";
}
php get all php files in a directory
foreach(glob('includes/*.php') as $file) {
    ...
}
require all files in directory php
foreach (scandir(dirname(__FILE__)) as $filename) {
    $path = dirname(__FILE__) . '/' . $filename;
    if (is_file($path)) {
        require $path;
    }
}
php list all files in directory
scandir ( string $directory [, int $sorting_order = SCANDIR_SORT_ASCENDING [, resource $context ]] ) : array




Php

Related
php remove last char from string Code Example php remove last char from string Code Example
wp cron disable Code Example wp cron disable Code Example
php string to uppwe Code Example php string to uppwe Code Example
php remove last character in string Code Example php remove last character in string Code Example
php refresh Code Example php refresh Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
21