|I get the following error.|
"Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /Library/WebServer/Documents/scripts/sitemap-2005-10-06/sitemap.inc.php on line 10"
This is the contents of the resulting file.
Er. Rochak Chauhan
|2005-11-20 14:26:31 - In reply to message 1 from Jon Mosier|
I guess this is due to the fact that you are using php 4.x .
to rectify it, just remove all "PRIVATE" , "PROTECTED" and "PUBLIC" keywords from the class.
|2005-11-21 04:59:12 - In reply to message 2 from Er. Rochak Chauhan|
That was the first thing I did.
The same result is true regardless of the version of php I run. I have tested it on 3 servers. 2 Mac OS X and 1 LINUX.
After removing PRIVATE, PUBLIC and PROTECTED, I also had to remove "static" from line 15.
I still have the same result.