note 38960 added to function.include

From: Date: Tue, 13 Jan 2004 13:30:25 +0000
Subject: note 38960 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-63405@lists.php.net to get a copy of this message
When trying to deport validated methods from a class into a separate file and use include (or include_once or require or require_once), PHP error is : parse error, unexpected T_INCLUDE, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' Code: class A extends B { var aa; function ff () { } include ("otherfunctions.class.inc.php"); function gg () { } } We can use include and al. everywhere except in a class ? ---- Manual Page -- http://www.php.net/manual/en/function.include.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38960 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38960&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38960&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#63405) next »