PHP Classes

Keep getting errors.

Recommend this page to a friend!

      GSM  >  All threads  >  Keep getting errors.  >  (Un) Subscribe thread alerts  
Subject:Keep getting errors.
Summary:Trying to run this example page. But I keep getting errors.
Messages:1
Author:Marcus Eby
Date:2008-10-02 20:02:30
 

  1. Keep getting errors.   Reply   Report abuse  
Picture of Marcus Eby Marcus Eby - 2008-10-02 20:02:30
Getting the error:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /htdocs/include/GoogleSiteMap.php on line 24

Line 22 on is:
class GoogleSiteMap
{
// definitions
private
$basedomain,
$dir = '.',
$dirs,
$self,
$entries,
$excludes,
$allowedextensions,
$recursive,
$xml;


I'm running PHP4. Whats producing this error?

Thanks.

Marcus