Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

require all files in directory php

foreach (scandir(dirname(__FILE__)) as $filename) {
    $path = dirname(__FILE__) . '/' . $filename;
    if (is_file($path)) {
        require $path;
    }
}
 
PREVIOUS NEXT
Tagged: #require #files #directory #php
ADD COMMENT
Topic
Name
5+5 =