Directory Listing ...

From: Alan Searle (aj_searle_at_xxxxyahoo.com)
Date: 06/30/04


Date: Wed, 30 Jun 2004 11:52:18 -0400

I'm a newbie to PHP and need to be able to get a list of the
files/sub-directories from a particular directory on the server (ie: I
want to load the list of files in the program's current directory into
an array).

This must be possible but somehow I can't find the syntax in my
documentation.

Can someone send me a snippet of syntax? Or point me towards a good
'howto' that maybe has a catalogue of PHP commands?

That would be a great help.

Many thanks,
Alan Searle



Relevant Pages

  • Re: Programming Tips and Tricks
    ... eg on current server a file may be located at: ... I only use echo and print statements for debugging these ... SSH Tunneling you'll throw PHP My Admin away forever - and when you see Data ... If you're on your local machine, and a script isn't running do a syntax ...
    (comp.lang.php)
  • Re: Ruby performance woes
    ... With PHP, I needed to set up a .HTACCESS file which enabled PHP on ... to convert either syntax to fully HTML output) ... into and out of a scriptlet to mix output generated by scriptlets ... within a single huge format string within a single call to FORMAT, ...
    (comp.lang.lisp)
  • RE: [PHP] two small issues with php mail
    ... If you had taken the breaths and calmed down when Stut wrote you, Chris would not have had to rewrite your own code to show the simple syntax flub that was partially causing your issue. ... [PHP] two small issues with php mail ... If Stut's answer does not make sense to you, google concatenate in the ... Can anyone show me where an "order of operations" for php mail might be ...
    (php.general)
  • Re: PHP global namespace clogged up
    ... >> the OO side of PHP for many months after I first started learning it. ... >> notation may strenghten one of PHP's weaknesses, ... > to climb - one for the procedural syntax and one for the OO syntax. ...
    (comp.lang.php)
  • Re: how does php parse actually this?
    ... >versions of PHP. ... structure syntax has a particular niche in the type of output posted earlier; ... part of the PHP language. ... I see no similar warning for the alternative control structure syntax. ...
    (comp.lang.php)