Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19611 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58200 invoked by uid 1010); 14 Oct 2005 06:07:10 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 58183 invoked from network); 14 Oct 2005 06:07:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Oct 2005 06:07:10 -0000 X-Host-Fingerprint: 69.231.195.186 adsl-69-231-195-186.dsl.irvnca.pacbell.net Received: from ([69.231.195.186:17612] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 31/67-04211-D0B4F434 for ; Fri, 14 Oct 2005 02:07:09 -0400 Message-ID: <31.67.04211.D0B4F434@pb1.pair.com> To: internals@lists.php.net Date: Thu, 13 Oct 2005 23:07:17 -0700 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 References: <2794B48D-7B1B-41AC-B9DA-04210699BD14@synchromedia.co.uk> In-Reply-To: <2794B48D-7B1B-41AC-B9DA-04210699BD14@synchromedia.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 69.231.195.186 Subject: Re: Globals unavailable, require oddity From: unknown@simplemachines.org ("Unknown W. Brackets") If you include a file within a function, that file will be loaded in that function's scope. Example: The same happens if b.class.php is included within a function (or class member, etc.) and includes a.inc.php, as in your example (I am presuming.) If this is the problem, I suggest simply adding: global $a; At the top of a.inc.php, which will solve the problem for you. -[Unknown]