Parse error in PHP4 but not PHP5
Hi,
I have some code which runs fine on my development server running
PHP5.2.4, but I'm getting a parse error on the production server
running PHP4.4.7 .
"Parse error: parse error, unexpected T_STRING, expecting
T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in .... on line 9"
It's a pretty basic class declaration and I can't imagine there'd be a
huge difference between PHP4 and 5 in the syntax. Could someone point
out the very simple thing I'm doing wrong?
<?php
require_once 'config.php';
require_once '../shared/mysql_libs.php';
require_once '../shared/html_libs.php';
require_once '../shared/recaptcha-php-1.10/recaptchalib.php';
class classifieds_post {
private $db = NULL; <------------------ line 9
private $cat_array = NULL;
private $admin = FALSE;
private $post_id = NULL;
private $post_cat = NULL;
|