Language: HtmlPhp
No Title
1: <?php 2: $zend_location = '/usr/share/php/Zend'; 3: $gilbert_location = '/home/steve/repos/test'; 4: 5: $dir_iterator = new RecursiveDirectoryIterator($zend_location); 6: $iterator = new RecursiveIteratorIterator($dir_iterator, RecursiveIteratorIterator::SELF_FIRST); 7: 8: // include all files recursively 9: foreach ($iterator as $file) { 10: echo str_ireplace($zend_location, '', $file->getPath(), 1); 11: }
Report Abuse
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search

