Lines Matching refs:file
64 while (($file = readdir($dp)) !== FALSE) {
65 if (preg_match($pattern, $file, $matches)) {
66 $aryret[$file] = urldecode($matches[1]);
71 foreach ($aryret as $file=>$page) {
73 $data = file_get_contents($dir . $file);
82 if (!unlink($dir . $file)) {
158 foreach ($files as $file) {
159 (is_dir("$dir/$file")) ? $this->delTree("$dir/$file") : unlink("$dir/$file");
171 while (($file = readdir($dh)) !== false) {
172 if ($file == "." || $file == "..") {
175 if (is_dir($dir_name . "/" . $file)) {
176 $this->dir_copy($dir_name . "/" . $file, $new_dir . "/" . $file);
177 rmdir($dir_name . "/" . $file);
180 copy($dir_name . "/" . $file, $new_dir . "/" . $file);
181 unlink($dir_name . "/" . $file);
194 foreach(glob($path . "/*") as $file) {
195 if (is_dir($file)) {
196 $result = array_merge($result, $this->getFiles($file));
199 $result[] = $file;