Files in folder

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nomad(CR)

    #1

    Files in folder

    Hi

    I want to develop a page, that show the content of the folder where is
    hosted.

    How can I do that?

    Thank in advance!
  • Rik Wasmus

    #2
    Re: Files in folder

    On Wed, 23 Jan 2008 22:52:18 +0100, Nomad(CR) <lfelipecr@gmai l.comwrote:
    Hi
    >
    I want to develop a page, that show the content of the folder where is
    hosted.
    >
    How can I do that?
    RTFM:
    glob()
    readdir()
    --
    Rik Wasmus

    Comment

    • Nomad(CR)

      #3
      Re: Files in folder

      >
      RTFM:
      glob()
      readdir()
      --
      Rik Wasmus
      Thanks for the info, but I am new in PHP, could you explain me more?

      Comment

      • Jensen Somers

        #4
        Re: Files in folder

        Nomad(CR) wrote:
        >RTFM:
        >glob()
        >readdir()
        >--
        >Rik Wasmus
        >
        Thanks for the info, but I am new in PHP, could you explain me more?
        Everything can be found in the PHP manual:

        Find pathnames matching a pattern



        Each page also contains numerous examples submitted by other people.
        Combining them creates the exact thing you are looking for.

        - Jensen

        Comment

        • Rik Wasmus

          #5
          Re: Files in folder

          On Thu, 24 Jan 2008 15:28:11 +0100, Nomad(CR) <lfelipecr@gmai l.comwrote:
          >RTFM:
          >glob()
          >readdir()
          >
          Thanks for the info, but I am new in PHP, could you explain me more?
          What is wrong with example(s) provided to you at http://php.net/readdir,
          or the example(s) at http://php.net/glob? Be sure to read the user
          contributed notes as well. PHP has one of the finest manuals around, and
          you should take advantage of that.
          --
          Rik Wasmus

          Comment

          • Krustov

            #6
            Re: Files in folder

            <comp.lang.ph p>
            <Nomad(CR)>
            <Thu, 24 Jan 2008 06:28:11 -0800 (PST)>
            <792883f4-880d-4c75-b1bb-7ef1f26928cc@e2 3g2000prf.googl egroups.com>
            RTFM:
            glob()
            readdir()
            --
            Rik Wasmus
            >
            Thanks for the info, but I am new in PHP, could you explain me more?
            >
            This is php newsgroup - how dare you ask for help when most of the
            regulars are only interested in telling you to read the manual .

            Dont you realise thats how they get their kicks and thats what gets them
            off everyday .

            Comment

            • Rik Wasmus

              #7
              Re: Files in folder

              On Thu, 24 Jan 2008 16:17:41 +0100, Krustov <me@privacy.net wrote:
              <comp.lang.ph p>
              <Nomad(CR)>
              <Thu, 24 Jan 2008 06:28:11 -0800 (PST)>
              <792883f4-880d-4c75-b1bb-7ef1f26928cc@e2 3g2000prf.googl egroups.com>
              >
              RTFM:
              glob()
              readdir()
              >>
              >Thanks for the info, but I am new in PHP, could you explain me more?
              >>
              >
              This is php newsgroup - how dare you ask for help when most of the
              regulars are only interested in telling you to read the manual .
              >
              Dont you realise thats how they get their kicks and thats what gets them
              off everyday .
              Krusty, you know damn well I seldomly use RTFM, and in this case an exact
              example of what the OP wants is IN the manual. Pointing out the fine
              manual to newbees is not meant as a put down, it is sincere advise. Don't
              try to find any personal or political agenda between the lines, there is
              none other then helping out others for me (allthough I can go off on a
              rant if people don't take that advise seriously / have no intention to use
              best practise coding standards).
              --
              Rik Wasmus

              Comment

              • Krustov

                #8
                Re: Files in folder

                <comp.lang.ph p>
                <Rik Wasmus>
                <Thu, 24 Jan 2008 16:37:34 +0100>
                <op.t5fxowaz5bn juv@metallium.l an>
                RTFM:
                glob()
                readdir()
                >
                Thanks for the info, but I am new in PHP, could you explain me more?
                >
                This is php newsgroup - how dare you ask for help when most of the
                regulars are only interested in telling you to read the manual .

                Dont you realise thats how they get their kicks and thats what gets them
                off everyday .
                >
                Krusty, you know damn well I seldomly use RTFM
                >
                Do i ? .

                No offence old chap , But i tend not to linger or savour your every word
                and as such i've no idea what you do or seldomly do .

                Comment

                • Rik Wasmus

                  #9
                  Re: Files in folder

                  On Thu, 24 Jan 2008 17:18:28 +0100, Krustov <me@privacy.net wrote:
                  <comp.lang.ph p>
                  <Rik Wasmus>
                  <Thu, 24 Jan 2008 16:37:34 +0100>
                  <op.t5fxowaz5bn juv@metallium.l an>
                  >
                  RTFM:
                  glob()
                  readdir()
                  >>
                  >Thanks for the info, but I am new in PHP, could you explain me more?
                  >>
                  >
                  This is php newsgroup - how dare you ask for help when most of the
                  regulars are only interested in telling you to read the manual .
                  >
                  Dont you realise thats how they get their kicks and thats what gets
                  >them
                  off everyday .
                  >>
                  >Krusty, you know damn well I seldomly use RTFM
                  >
                  Do i ? .
                  Ah, so you don't know what I post normally? Yet you claim to have an
                  insight. Or do you claim that by adding the phrase 'most regulars', I
                  should not feel offended?
                  No offence old chap , But i tend not to linger or savour your every word
                  and as such i've no idea what you do or seldomly do .
                  Then don't claim to know what I usually post, and what gets me off.

                  I understand an 'RTFM' is in some circles grossly overused, and can cause
                  some people to take an instant dislike. In this case however, it was
                  exactly what the OP needed, as the manual even includes an example with
                  the exact functionality he specified. So, even an 'RTFM' reply should be
                  rated on its context (and I did provide the 2 function that might be of
                  interest).

                  On a side note, according to google RTFM isn't that widely used here:
                  <http://tinyurl.com/338ww5And even those hits are a lot of doubles &
                  quotes.
                  --
                  Rik Wasmus

                  Comment

                  • Nomad(CR)

                    #10
                    Re: Files in folder

                    On 24 ene, 08:48, "Rik Wasmus" <luiheidsgoe... @hotmail.comwro te:
                    On Thu, 24 Jan 2008 15:28:11 +0100, Nomad(CR) <lfelip...@gmai l.comwrote:
                    RTFM:
                    glob()
                    readdir()
                    >
                    Thanks for the info, but I am new in PHP, could you explain me more?
                    >
                    What is wrong with example(s) provided to you athttp://php.net/readdir,
                    or the example(s) athttp://php.net/glob?Be sure to read the user
                    contributed notes as well. PHP has one of the finest manuals around, and
                    you should take advantage of that.
                    --
                    Rik Wasmus
                    I didn't say that it is wrong, I just say that don't understand how to
                    use it!

                    Comment

                    Working...