function parcourirDossierJquery($pPath, $filenameJQuery, $filenameJQUI) { if (is_dir($pPath)) { $d = dir($pPath); while (false !== ($entry = $d->read())) { if ($entry != '.' && $entry != '..' && $entry != '.svn' && $entry != '.project' && $entry != '.htaccess' && $entry != 'Old' && $entry != $filenameJQuery && $entry != $filenameJQUI) { if (is_dir($d->path . '/' . $entry)) { parcourirDossierJquery($d->path . '/' . $entry, $filenameJQuery, $filenameJQUI); } else { $filename = $d->path . '/' . $entry; echo file_get_contents($filename); } } } $d->close(); } else { echo file_get_contents($pPath); } }
function parcourirDossierJquery($pPath, $filenameJQuery, $filenameJQUI) { if (is_dir($pPath)) { $d = dir($pPath); while (false !== ($entry = $d->read())) { if ($entry != '.' && $entry != '..' && $entry != '.svn' && $entry != '.project' && $entry != '.htaccess' && $entry != 'Old' && $entry != $filenameJQuery && $entry != $filenameJQUI) { if (is_dir($d->path . '/' . $entry)) { parcourirDossierJquery($d->path . '/' . $entry, $filenameJQuery, $filenameJQUI); } else { $filename = $d->path . '/' . $entry; $fp = fopen("./zeybu/js/zeybux-jquery.js", 'a'); fwrite($fp, file_get_contents($filename)); fclose($fp); } } } $d->close(); } else { $fp = fopen("./zeybu/js/zeybux-jquery.js", 'a'); fwrite($fp, file_get_contents($pPath)); fclose($fp); } }