|
Posted by cainwebdesign on 10/24/06 16:10
Rik,
Thanks but can you take a quick look, i still can see to get it to
work.
<?php
$html =
file_get_contents('http://www.toysrus.com/product/index.jsp?productId=2327085');
preg_match('|<div[^>]*?id="toShow"[^>]*>.*?<img[^>]*?src="([^"]*)"|si',$html,$match);
$src = $match[1];
echo $src;
?>
Rik wrote:
> cainwebdesign@gmail.com wrote:
> > I need to create a simple page to find the .gif file below from the
> > page below. No matter what I try it doesn't work.... Any ideas?
> >
> > http://www.toysrus.com/product/index.jsp?productId=2327085
> >
> >
> > prod_AddtoCart.gif
>
> preg_match('|<div[^>]*?id="toShow"[^>]*>.*?<img[^>]*?src="([^"]*)"|si',$htm
> l,$match);
> $src = $match[1];
>
> --
> Grtz,
>
> Rik Wasmus
Navigation:
[Reply to this message]
|