Re: [PHP] List of included file names

2001-06-21 Thread lenar

use get_included_files() and/or get_required_files() functions.

lenar.

"DAve Goodrich" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > -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:
> > 
> >  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 
> [EMAIL PROTECTED] 
> http://www.rblc.com
> 
> 
> 
> 
> 
> 
> -- 
> 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]
> 


--
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]




RE: [PHP] List of included file names

2001-06-21 Thread DAve Goodrich

> -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:
> 
> 

Re: [PHP] list of included file names

2001-06-21 Thread Gyozo Papp

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 
- [EMAIL PROTECTED]

- Original Message - 
From: "Tim McGuire" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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:


[PHP] Resubmitting questions (Was [PHP] List of included file names)

2001-06-21 Thread Jason Murray

> Little note not only to you: Getting no answer after ~3 hours 
> does *not* mean you have to resubmit the question.

Agreed.

No answer usually means:

 1) We don't know

 2) We don't know anyone who knows

 3) We're asleep

or

 4) We don't care (hey, most of us have our own interests)

This should be in an automated mail or something :)

Jason

-- 
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]




RE: [PHP] List of included file names.

2001-06-20 Thread scott [gts]

yeah.  at the beginning of each include file, put:

print '';


...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:
> 
> 

Re: [PHP] List of included file names.

2001-06-20 Thread Christian Reiniger

On Tuesday 19 June 2001 20:30, Tim McGuire wrote:

> 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.

Little note not only to you: Getting no answer after ~3 hours does *not* 
mean you have to resubmit the question.

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

Very funny, Scotty! Now beam up my clothes...

--
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]




Re: [PHP] list of included file names

2001-06-20 Thread Christian Reiniger

On Tuesday 19 June 2001 17:42, Tim McGuire wrote:

> For debugging purposes, I want to see a list of the included files on a
> page in HTML comments.

http://php.net/get_included_files

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

Very funny, Scotty! Now beam up my clothes...

--
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]




Re: [PHP] List of included file names.

2001-06-20 Thread Dallas K.

Try using $PHP_SELF to get the name of the PHP script.





- Original Message -
From: "Tim McGuire" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 19, 2001 11:30 AM
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:


[PHP] List of included file names.

2001-06-20 Thread Tim McGuire

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:


[PHP] list of included file names

2001-06-19 Thread Tim McGuire

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: