note 9242 added to require_once

From: Date: Tue, 24 Oct 2000 14:16:53 +0000
Subject: note 9242 added to require_once
Groups: php.notes 
Request: Send a blank email to php-notes+get-6939@lists.php.net to get a copy of this message
This does not work when the function is called in a non-global context. <? //begin of file require_once("filename.inc.php"); function test(){ require_once("filename.inc.php"); } test(); ?> will produce an error if there are function definitions in the included file. http://www.php.net/manual/function.require-once.php

« previous php.notes (#6939) next »