Thư viện tri thức trực tuyến
Kho tài liệu với 50,000+ tài liệu học thuật
© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

Tài liệu đang bị lỗi
File tài liệu này hiện đang bị hỏng, chúng tôi đang cố gắng khắc phục.
Chuyển nội dung file sang XML
Nội dung xem thử
Mô tả chi tiết
Chuyển nội dung file sang XML
class_file2xml.php
view plainprint?
1. <?
2. /*===============================
3. - Class: File2XML
4. - Author: Huynh Hai Huynh
5. - Email: [email protected]
6. - Website: http://www.php.net.vn
7. ===============================*/
8.
9. class file2xml
10. {
11.
12.
13. var $folder_read;
14.
15. var $folder_write;
16.
17. var $xml_write;
18.
19. var $ext_read = array();
20.
21. var $file_in = array();
22.
23. var $time_limit;
24.
25. var $size_limit;
26.
27. function listfile()
28. {
29.
30. $file_in = array();
31.
32. if ($handle = @opendir($this->folder_read))
33. {
34. while (false !== ($file = readdir($handle)))
35. {
36. if ($file != "." && $file != "..")
37. {
38.
39. if (is_file($this->folder_read."/".$file))
40. {
41.
42.
43. $mfile = explode(".",$file);
44.
45.
46. $f_size = filesize($this->folder_read."/".$file);
47.
48. $ext = $mfile[count($mfile)-1];
49.
50.