dongshendi3599
dongshendi3599
2011-07-12 11:34

搜索站点中的文件并将其复制到阵列

  • php
  • arrays

I want to search *.rules from this site http://cvs.snort.org/viewcvs.cgi/snort/rules/

and copy the strings of files into an array

how can I do this? for example:

$array=array('backdoor.rules','bad-traffic.rules');

I can use

$str=file_get_contents( 'http://cvs.snort.org/viewcvs.cgi/snort/rules');

but how can I search?

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答

为你推荐