|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-08-10 16:41 UTC] marten at jerbro dot se
Is it possible to make get_included_files() and get_required_files() to work even if the files included/required does not end with .php? PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 10 22:00:02 2026 UTC |
Sorry if my explanation was fuzzy. What i meant is this; in the snippet below get_included_files() returns an empty array because the required files do not end in .php. <? require_once('global.inc'); require_once('sess.class'); require_once('banner.class'); require_once('cache.class'); require_once('template.class'); var_dump(get_required_files()); ?> From the manual page for get_required_files(); "As of PHP 4.0.1pl2 this function assumes that the required_once files end in the extension '.php', other extensions do not work."