Do some servers support classes and others don't?
I wrote a shopping cart on one server and copy/pasted in onto another server and i get the following error:
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in .../classcart/ShoppingCart.php on line 7
This is how the code starts for the ShoppingCart.php page. The first class is named ShoppingCart, followed by many functions and other classes and finally ending with a "}".
class ShoppingCart
{
private $DBConnect = "";
private $DBName = "";
private $TableName = "" ;
private $Orders = array();
private $OrderTable = array();
I don't understand why I'm getting an error that it doesn't recognize the class as a class. Any ideas what's going on?