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!
lfelipecr [ Mi, 23 Januar 2008 22:52 ] [ ID #1914791 ]

Re: Files in folder

On Wed, 23 Jan 2008 22:52:18 +0100, Nomad(CR) <lfelipecr [at] gmail.com> wrote:

> 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
luiheidsgoeroe [ Mi, 23 Januar 2008 23:25 ] [ ID #1914792 ]

Re: Files in folder

>
> RTFM:
> glob()
> readdir()
> --
> Rik Wasmus

Thanks for the info, but I am new in PHP, could you explain me more?
lfelipecr [ Do, 24 Januar 2008 15:28 ] [ ID #1915616 ]

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:

http://be.php.net/glob
http://be.php.net/readdir

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

- Jensen
Jensen Somers [ Do, 24 Januar 2008 15:48 ] [ ID #1915617 ]

Re: Files in folder

On Thu, 24 Jan 2008 15:28:11 +0100, Nomad(CR) <lfelipecr [at] gmail.com> wrote:
>> 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
luiheidsgoeroe [ Do, 24 Januar 2008 15:48 ] [ ID #1915618 ]

Re: Files in folder

<comp.lang.php>
<Nomad(CR)>
<Thu, 24 Jan 2008 06:28:11 -0800 (PST)>
<792883f4-880d-4c75-b1bb-7ef1f26928cc [at] e23g2000prf.googlegroups.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 .
Hans-Peter Sauer [ Do, 24 Januar 2008 16:17 ] [ ID #1915622 ]

Re: Files in folder

On Thu, 24 Jan 2008 16:17:41 +0100, Krustov <me [at] privacy.net> wrote:
> <comp.lang.php>
> <Nomad(CR)>
> <Thu, 24 Jan 2008 06:28:11 -0800 (PST)>
> <792883f4-880d-4c75-b1bb-7ef1f26928cc [at] e23g2000prf.googlegroups.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
luiheidsgoeroe [ Do, 24 Januar 2008 16:37 ] [ ID #1915625 ]

Re: Files in folder

<comp.lang.php>
<Rik Wasmus>
<Thu, 24 Jan 2008 16:37:34 +0100>
<op.t5fxowaz5bnjuv [at] metallium.lan>

> >> > 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 .
Hans-Peter Sauer [ Do, 24 Januar 2008 17:18 ] [ ID #1915628 ]

Re: Files in folder

On Thu, 24 Jan 2008 17:18:28 +0100, Krustov <me [at] privacy.net> wrote:
> <comp.lang.php>
> <Rik Wasmus>
> <Thu, 24 Jan 2008 16:37:34 +0100>
> <op.t5fxowaz5bnjuv [at] metallium.lan>
>
>> >> > 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/338ww5> And even those hits are a lot of doubles &
quotes.
--
Rik Wasmus
luiheidsgoeroe [ Do, 24 Januar 2008 21:01 ] [ ID #1915634 ]

Re: Files in folder

On 24 ene, 08:48, "Rik Wasmus" <luiheidsgoe... [at] hotmail.com> wrote:
> On Thu, 24 Jan 2008 15:28:11 +0100, Nomad(CR) <lfelip... [at] gmail.com> wrote:
> >> 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!
lfelipecr [ Fr, 25 Januar 2008 20:06 ] [ ID #1916402 ]
PHP » comp.lang.php » Files in folder

Vorheriges Thema: regular expression negate a word (not character)
Nächstes Thema: MySQL design question