Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. <div id="ProductImages" class="noscript">
  2. <ul>
  3.  
  4. <li>
  5. <a href="/WebRoot/products/8020/80203122/bilder/80203122.jpg">
  6. <img
  7. itemprop="image"
  8. alt="Jesus Remember Me - Taize Songs (2CD)"
  9. src="/WebRoot/AsaphNL/Shops/asaphnl/5422/8F43/62EE/D698/EF8E/4DEB/AED5/3B0E/80203122_xs.jpg"
  10. data-src-xs="/WebRoot/AsaphNL/Shops/asaphnl/5422/8F43/62EE/D698/EF8E/4DEB/AED5/3B0E/80203122_xs.jpg"
  11. data-src-s="/WebRoot/products/8020/80203122/bilder/80203122_s.jpg"
  12.  
  13. data-src-m="/WebRoot/products/8020/80203122/bilder/80203122_m.jpg"
  14.  
  15. data-src-l="/WebRoot/products/8020/80203122/bilder/80203122.jpg"
  16. />
  17. </a>
  18. </li>
  19.  
  20. </ul>
  21.  
  22. <?php
  23. header('Content-Type: text/html; charset=utf-8');
  24. $url = "http://www.asaphshop.nl/epages/asaphnl.sf/nl_NL/?ObjectPath=/Shops/asaphnl/Products/80203122";
  25. $htmlcode = file_get_contents($url);
  26. $pattern = "/<imgs[^>]*?srcs*=s*['"]([^'"]*?)['"][^>]*?>/";
  27. preg_match_all($pattern, $htmlcode, $matches);
  28. //print_r ($matches);
  29. $image = ($matches[0]);
  30. $image = str_replace('src="/', 'src="http://www.asaphshop.nl/', $image);
  31. print_r ($image);
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement