Re: List of included file names

From: Date: Thu, 21 Jun 2001 17:55:19 +0000
Subject: Re: List of included file names
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54775@lists.php.net to get a copy of this message
use get_included_files() and/or get_required_files() functions. lenar. "DAve Goodrich" <daveg@rblc.com> wrote in message news:B7577E49.1A4D2%daveg@rblc.com... > > -----Original Message----- > > From: Tim McGuire [mailto:tim.mcguire@dnr.state.mn.us] > > Sent: Tuesday, June 19, 2001 2:30 PM > > To: php-general@lists.php.net > > Subject: [PHP] List of included file names. > > > > > > Hi, > > > > I searched the archives for this. > > > > For debugging purposes, I want to see a list of the included files on a > > page in HTML comments. > > > > PHP_SELF and HTTP_SERVER_VARS["SCRIPT FILENAME"] only returns the name + > > path of the file calling the included files. > > > > I want each included file to contribute its name to the page. Is there > > any way to do that so that the HTML source looks like this: > > > > <!-- These files contribute to this page - -> > > > > <!-- species_inc.php - -> > > <!-- db_connect_inc.php - -> > > <!-- constants_inc.php - - > > > > > > > Thanks > > > > Tim > > > Here is a URL for an answer I sent Tim, just in case anyone else is > interested. I posted the file rather than sending an attachment. > > http://pixelhammer.com/sample.txt > > It's fairly self explanatory, hope it helps. > > DAve > -- > Dave Goodrich > Director of Interface Development > Reality Based Learning Company > 9521 NE Willows Road, Suite 100 > Redmond, WA 98052 > Toll Free 1-877-869-6603 ext. 237 > Fax (425) 558-5655 > daveg@rblc.com > http://www.rblc.com > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#54775) next »