List of files fetched via include() or require()

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sandman

    List of files fetched via include() or require()

    Hello!

    I want to be able to, at the end of an executed file, summarize what files it
    included and required (via include() and require()). I have a very dynamic
    script that depending on the situation handles several different files and
    scripts.

    To aid in developing, listing them would be helpful, to troubleshooting
    problems. Iss there a way to list all the files that have been included along
    the way?

    Thanks in advance

    --
    Sandman[.net]
  • Sandman

    #2
    Re: List of files fetched via include() or require()

    In article <mr-51D765.10110125 062004@individu al.net>, Sandman <mr@sandman.net >
    wrote:
    [color=blue]
    > Hello!
    >
    > I want to be able to, at the end of an executed file, summarize what files it
    > included and required (via include() and require()). I have a very dynamic
    > script that depending on the situation handles several different files and
    > scripts.
    >
    > To aid in developing, listing them would be helpful, to troubleshooting
    > problems. Iss there a way to list all the files that have been included along
    > the way?
    >
    > Thanks in advance[/color]

    Never mind, I found the function. :)

    --
    Sandman[.net]

    Comment

    • Savut

      #3
      Re: List of files fetched via include() or require()

      For who need to know, the function is get-included-files()

      Savut


      "Sandman" <mr@sandman.net > wrote in message
      news:mr-51D765.10110125 062004@individu al.net...[color=blue]
      > Hello!
      >
      > I want to be able to, at the end of an executed file, summarize what files
      > it
      > included and required (via include() and require()). I have a very dynamic
      > script that depending on the situation handles several different files and
      > scripts.
      >
      > To aid in developing, listing them would be helpful, to troubleshooting
      > problems. Iss there a way to list all the files that have been included
      > along
      > the way?
      >
      > Thanks in advance
      >
      > --
      > Sandman[.net][/color]

      Comment

      • Sandman

        #4
        Re: List of files fetched via include() or require()

        In article <SMVCc.34668$Nz .2051237@news20 .bellglobal.com >,
        "Savut" <webki@hotmail. com> wrote:
        [color=blue][color=green]
        >> I want to be able to, at the end of an executed file, summarize what
        >> files it included and required (via include() and require()). I have
        >> a very dynamic script that depending on the situation handles several
        >> different files and scripts.
        >>
        >> To aid in developing, listing them would be helpful, to
        >> troubleshooting problems. Iss there a way to list all the files that
        >> have been included along the way?
        >>
        >> Thanks in advance[/color]
        >
        > For who need to know, the function is get-included-files()[/color]

        Or rather get_included_fi les(). :)

        --
        Sandman[.net]

        Comment

        Working...