如何使用php查找远程网页中所有文件的列表
我是PHP初学者,我想列出远程网页中使用的所有文件,以及使用PHP在如何使用php查找远程网页中所有文件的列表,php,list,file,Php,List,File,我是PHP初学者,我想列出远程网页中使用的所有文件,以及使用PHP在.js和.css文件中使用的所有文件 例如,我想获得在http://sitename.com/gallery.html我需要这样的列表: /css/gallery.css (using in gallery.html) /css/rtl.css (this file imported in gallery.css) /images/bodybg.png (this file imported in gallery.css) /i
.js
和.css
文件中使用的所有文件
例如,我想获得在http://sitename.com/gallery.html
我需要这样的列表:
/css/gallery.css (using in gallery.html)
/css/rtl.css (this file imported in gallery.css)
/images/bodybg.png (this file imported in gallery.css)
/images/gallery/image1.jpg (using in gallery.html)
/images/gallery/image2.jpg (using in gallery.html)
...
就像测试网页的结果一样,它列出了网页中使用的所有文件。PHP中的最佳方法
这种方式将只列出.css
文件,但我想列出所有文件(css、js、图像、字体、zip等)