I tried that, and got...
Fatal error: Call to undefined function: file_get_contents() in
e:\phpdev\www\ebaytraders.com\test.php on line 12
Any more help ?
Thanks anyway, BTW
Senator Jay Billington Bulworth wrote:[color=blue]
>
lessani@gmail.com (ben lessani) wrote in
> news:536703d4.0502131045.6f206d80@posting.google.c om:
>[color=green]
> > Hi guys,
> >
> > I've been searching all day for a method on how to integrate the
> > listings off ebaY onto my website, but I have had no joy[/color][/color]
whatsoever.[color=blue][color=green]
> >
> > I want to be able to open a listing based on the the item number,
> > which I can do simply by using,
> >
> > $ITEMNUMER = ("blah");
> > http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=$ITEMNUMER
> >
> > [...]
> >
> > What I really want to do is have a script check a listing for some
> > text. But, as I cannot get PHP to open the file, I'm stuck ![/color]
>
> <?php
>
> $data = file_get_contents("http://cgi.ebay.co.uk/ws/eBayISAPI.dll?
> ViewItem&item=4356967161");
>
> if(preg_match("/potty/i", $data, $match)){
> echo "This eBay listing says '$match[0]'";
> }
>
> ?>
>
> (Don't ask me, I searched eBay for "PHP" and that came up...)
>
> hth
>
>
> --
>
> Bulworth : PHP/MySQL/Unix | Email : str_rot13('f@fung.arg');
> --------------------------|---------------------------------
> <http://www.phplabs.com/> | PHP scripts, webmaster resources[/color]