国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
777B

  1. <?php
  2. /**
  3. * 图片测试
  4. *
  5. * @version $id:album_testhtml.php 8:26 2010年7月12日 tianya $
  6. * @package DedeBIZ.Administrator
  7. * @copyright Copyright (c) 2022 DedeBIZ.COM
  8. * @license https://www.dedebiz.com/license
  9. * @link https://www.dedebiz.com
  10. */
  11. require_once(dirname(__FILE__)."/config.php");
  12. AjaxHead();
  13. $myhtml = UnicodeUrl2Gbk(stripslashes($myhtml));
  14. echo "<div class='coolbg61'>[<a href='javascript:;' onclick='javascript:HideObj(\"_myhtml\")'>关闭</a>]</div>\r\n";
  15. preg_match_all("/(src|SRC)=[\"|'| ]{0,}(http:\/\/(.*)\.(gif|jpg|jpeg|png))/isU", $myhtml, $img_array);
  16. $img_array = array_unique($img_array[2]);
  17. echo "<div class='coolbg62'><xmp>";
  18. echo "捕获的图片:\r\n";
  19. print_r($img_array);
  20. echo "</xmp></div>\r\n";
  21. ?>