Re: list of included file names
| From: | Gyozo Papp | Date: | Thu, 21 Jun 2001 07:31:25 +0000 |
| Subject: | Re: list of included file names | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-54697@lists.php.net to get a copy of this message | ||
Hello,
since PHP 4.0RC1 there is a function what you really need callled:
array get_included_files (void)
which returns with the name of the included files.
For more detail, read the manual : LVII. PHP options & informations
Papp Gyozo
- pgerzson@freestart.hu
----- Original Message -----
From: "Tim McGuire" <tim.mcguire@dnr.state.mn.us>
To: <php-general@lists.php.net>
Sent: 2001. június 19. 17:42
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 source looks like this:
<!-- These files contribute to this page - ->
<!-- species_inc.php - ->
<!-- db_connect_inc.php - ->
<!-- constants_inc.php - - >
Thanks
Tim