Re: note 11829 added to function.get-required-files.php

From: Date: Fri, 09 Mar 2001 00:36:58 +0000
Subject: Re: note 11829 added to function.get-required-files.php
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-12086@lists.php.net to get a copy of this message
Yes, the behavior changed for PHP 4.0.4pl1. Had not checked the latest CVS code yet. After I do that I'll modify the manual entry for this function. Tnxs for the info. --- yasuo_ohgaki@hotmail.com wrote: > Example code does not work as explained on my system > (Linux/Aapache/PHP4.0.4pl1) > > [I also think, there is a little mistake in the > example code - > > include("util".$i."php"); > > probably means > > include_once('util'.$i.'.php'); > (. added before php) > It does not make any difference on the result, > though. > I don't care with this kind of little mistakes, but > it is still better to fixed :)] > > Anyway, BOTH get_included_files() and > get_required_files() give the same output. AND both > of functions does show files included/required by > includle()/require(). AND array is not associative, > but indexed by number. AND both of them does not > care about extention. > > Just FYI. > > I got following output with the example code. > > ============ > Required_once files > Array > ( > [0] => /home/httpd/httpd/html/untitled/local.php > [1] => /home/httpd/httpd/html/inc/global.php > [2] => /home/httpd/httpd/html/untitled/util1.php > [3] => /home/httpd/httpd/html/untitled/util2.php > [4] => /home/httpd/httpd/html/untitled/util3.php > [5] => /home/httpd/httpd/html/untitled/util4.php > ) > Included_once files > Array > ( > [0] => /home/httpd/httpd/html/untitled/local.php > [1] => /home/httpd/httpd/html/inc/global.php > [2] => /home/httpd/httpd/html/untitled/util1.php > [3] => /home/httpd/httpd/html/untitled/util2.php > [4] => /home/httpd/httpd/html/untitled/util3.php > [5] => /home/httpd/httpd/html/untitled/util4.php > ) > > > http://www.php.net/manual/en/function.get-required-files.php > > > > -- > PHP Notes Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-notes-unsubscribe@lists.php.net > For additional commands, e-mail: > php-notes-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > ===== --- Jesus M. Castagnetto <jmcastagnetto@php.net> __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/

« previous php.notes (#12086) next »