473,322 Members | 1,480 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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!
Jan 23 '08 #1
9 1536
On Wed, 23 Jan 2008 22:52:18 +0100, Nomad(CR) <lf*******@gmail.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
Jan 23 '08 #2
>
RTFM:
glob()
readdir()
--
Rik Wasmus
Thanks for the info, but I am new in PHP, could you explain me more?
Jan 24 '08 #3
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
Jan 24 '08 #4
On Thu, 24 Jan 2008 15:28:11 +0100, Nomad(CR) <lf*******@gmail.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
Jan 24 '08 #5
<comp.lang.php>
<Nomad(CR)>
<Thu, 24 Jan 2008 06:28:11 -0800 (PST)>
<79**********************************@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 .
Jan 24 '08 #6
On Thu, 24 Jan 2008 16:17:41 +0100, Krustov <me@privacy.netwrote:
<comp.lang.php>
<Nomad(CR)>
<Thu, 24 Jan 2008 06:28:11 -0800 (PST)>
<79**********************************@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
Jan 24 '08 #7
<comp.lang.php>
<Rik Wasmus>
<Thu, 24 Jan 2008 16:37:34 +0100>
<op***************@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 .
Jan 24 '08 #8
On Thu, 24 Jan 2008 17:18:28 +0100, Krustov <me@privacy.netwrote:
<comp.lang.php>
<Rik Wasmus>
<Thu, 24 Jan 2008 16:37:34 +0100>
<op***************@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/338ww5And even those hits are a lot of doubles &
quotes.
--
Rik Wasmus
Jan 24 '08 #9
On 24 ene, 08:48, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Thu, 24 Jan 2008 15:28:11 +0100, Nomad(CR) <lfelip...@gmail.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!
Jan 25 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Rosa | last post by:
Hi, I'm trying to clear the TIF on Windows XP programmatically with the below code. This code works fine on any folder but the TIF. For some reason the atEnd() statements always defaults to true...
8
by: Adam Clauss | last post by:
I have a folder containing many subfolders (and subfolders and....) all containing various .cs files. Is there any "easy" way to get them all added to the solution. Preferable would be that the...
2
by: Dan Baker | last post by:
I'm relatively new to the .cs world. I would like to have some "shared" .cs files, which several solutions can use. I don't want to place these in a ..dll, I simply want them included into...
2
by: Glen | last post by:
As I understand it, when the first page of an application is accessed, all ASPX/ASCX/etc. files in the same folder are compiled using the JIT compiler. Is there a way to turn this feature off? ...
8
by: vinesh | last post by:
I have sample Asp.Net Web Application project. Let me know how to keep the files related to this project (like the webform.aspx, WebForm1.aspx.vb, WebForm1.aspx.resx) in a separate folder within a...
8
by: Paw | last post by:
Greetings. I use asp. what I need is is when a visitor comes to the site, I need it to check the host name. if "www.hometowndigest.com" is the host, then check a folder named "something" and if...
5
by: wwwmike | last post by:
I have an asp.net 2.0 application where I move about 200,000 text files daily in and out. When using VS 2005 to debug my application everything works find if only a few files are in the folder....
3
by: jaeden99 | last post by:
I was wandering if nyone has a script to move files older than x days old? i've seen several to delete, but I don't want to delete. I would like to create a backup of the files first verify with...
1
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
Using .NET 2.0 is it more efficient to copy files to a single folder versus spreading them across multiple folders. For instance if we have 100,000 files to be copied, Do we copy all of them to...
8
by: =?Utf-8?B?QnJ5YW4=?= | last post by:
Hello group. I have some code (given to me), but I don't know alot about ASP, so I was hoping someone here can help. Running on Win 2008 server. The code below will scan a folder and subfolder...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.