If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

A class is a collection of variables and functions working with these variables. Variables are defined by var and functions by function. A class is defined using the following syntax:
<?php
class Cart {
var $items; // Items in our shopping cart

The first problem I see is that the first param of the "scrape()" function is looking for an array and you are passing a string...the second arguement, you are passing a string, but not enclosed in quotes. I have not tested this at all...just throwing this out, but try: