note 21629 added to function.include

From: Date: Tue, 21 May 2002 18:16:22 +0000
Subject: note 21629 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-30855@lists.php.net to get a copy of this message
I cannot find a way to get includes to work inside a class definition. I have a class with a whole lot of functions and I want to split these functions into separate files to make it easier to manage. When I add the include() call to the class I recieve an error some thing like: parse error: expecting T_VARIABLE..blah blah blah This is a rough idea of how I'm using the include statement: class foo { var $one; var $two; include("functions.php"); } Does anyone have an idea?? -- http://www.php.net/manual/en/function.include.php http://master.php.net/manage/user-notes.php?action=edit+21629 http://master.php.net/manage/user-notes.php?action=delete+21629 http://master.php.net/manage/user-notes.php?action=reject+21629

« previous php.notes (#30855) next »