yeah. at the beginning of each include file, put:
print '<!-- my.file.name.php -->';
...or were you looking for something a little
harder and more convoluted? :)
> -----Original Message-----
> From: Tim McGuire [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 19, 2001 2:30 PM
> To: [EMAIL PROTECTED]
> 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
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]