A Programmer’s Introduction to PHP 4.0 phần 5 pot

47 264 0
A Programmer’s Introduction to PHP 4.0 phần 5 pot

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Gilmore_07 12/4/00 1:06 PM Page 171 File I/O and the File System // Increment the   count // Recursive call to display_directory() function display_directory($file, $folder_location, $using_linux, // $init_depth); // Not dealing with a directory else : // Build path In accordance with what OS Is being used if ($using_linux == 0) : $tab_depth = ($current_depth - $init_depth) - 2; $x = 0; // calculate tab depth while ( $x < (($tab_depth * 2) + 5) ) : print " "; $x++; endwhile; print "".basename($file)." "; else : print "".basename($file)." "; endif; endif; // Is_dir(file) endif; // If ! "." or " " endwhile; // close the directory closedir($dh); } ?>

Ngày đăng: 09/08/2014, 12:22

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan