Files in folder

Files in folder

am 23.01.2008 22:52:18 von lfelipecr

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!

Re: Files in folder

am 23.01.2008 23:25:01 von luiheidsgoeroe

On Wed, 23 Jan 2008 22:52:18 +0100, Nomad(CR) 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

Re: Files in folder

am 24.01.2008 15:28:11 von lfelipecr

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

Thanks for the info, but I am new in PHP, could you explain me more?

Re: Files in folder

am 24.01.2008 15:48:29 von luiheidsgoeroe

On Thu, 24 Jan 2008 15:28:11 +0100, Nomad(CR) 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

Re: Files in folder

am 24.01.2008 15:48:53 von Jensen Somers

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

Re: Files in folder

am 24.01.2008 16:17:41 von Hans-Peter Sauer




<792883f4-880d-4c75-b1bb-7ef1f26928cc@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 .

Re: Files in folder

am 24.01.2008 16:37:34 von luiheidsgoeroe

On Thu, 24 Jan 2008 16:17:41 +0100, Krustov wrote:
>
>
>
> <792883f4-880d-4c75-b1bb-7ef1f26928cc@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

Re: Files in folder

am 24.01.2008 17:18:28 von Hans-Peter Sauer






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

Re: Files in folder

am 24.01.2008 21:01:25 von luiheidsgoeroe

On Thu, 24 Jan 2008 17:18:28 +0100, Krustov wrote:
>
>
>
>
>
>> >> > 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:
And even those hits are a lot of doubles &
quotes.
--
Rik Wasmus

Re: Files in folder

am 25.01.2008 20:06:35 von lfelipecr

On 24 ene, 08:48, "Rik Wasmus" wrote:
> On Thu, 24 Jan 2008 15:28:11 +0100, Nomad(CR) 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!