Parse error with classes and requrires in php4

From: Date: Tue, 24 Aug 1999 05:35:06 +0000
Subject: Parse error with classes and requrires in php4
Groups: php.version4 
Request: Send a blank email to php-version4+get-3673@lists.php.net to get a copy of this message
I am having a problem (parse error at the var $dbHost line (or anything below) in the following code : <? require('../includes/php/mydb.inc'); require('../includes/php/configuration.inc'); class digitaldb extends mydb { var $dbHost = $theHost; var $dbName = $theDB; var $User = $theUser; var $Password = $thePassword; } ?> This code worked fine under php3, but not php4. It works if I statically assign variables, or give no assignment, but when assigning to variables from a required file, it causes a parse error. Can anyone help me with this? Thanks, david.

« previous php.version4 (#3673) next »