CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Language: HtmlPhp

No Title

102 Views
Copy Code Show/Hide Line Numbers
   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:  }
by fuhrysteve
  March 12, 2010 @ 10:50am

Add a comment


Report Abuse
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate