| John Mertic 2007-09-11, 8:00 am |
| Yeah, that's kinda of heavyweight solution to the problem ( not to
mention is much slower than using opendir(), readdir(), and closedir()
since scandir() sorts the results as well ).
If you are just checking for access, either opendir() or is_readable()
should work much faster. But I guess I don't really understand the
context of your issue either, which may dictate why one way of doing
things might be better than another.
John
On 9/11/07, Gustav Wiberg <gustav@hmn.se> wrote:
> Hi!
>
> I have solved the problem, but I just wondered if there were any options. I use @scandir, and when no error occurs then it shows folders from the specified folder in scandir-function. But this doesn't seem like "good" programming practice... ;-)
>
> Best regards
> /Gustav Wiberg
>
>
> -----Original Message-----
> From: John Mertic [mailto:jmertic@gmail.com]
> Sent: Monday, September 10, 2007 4:14 PM
> To: Gustav Wiberg
> Cc: php windows
> Subject: Re: [PHP-WIN] File-error code?
>
> For the most part yes. Please elaborate if there is something
> particular you are looking for?
>
> John
>
> On 9/10/07, Gustav Wiberg <gustav@hmn.se> wrote:
ion?[color=darkred]
>
>
> --
> --
> John Mertic "Explaining a joke
> is like dissecting a frog: you
> jmertic@gmail.com understand it better,
> but the frog dies in the
> process."
>
> -Mark Twain
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.485 / Virus Database: 269.13.12/997 - Release Date: 2007-09-09 10:17
>
>
>
>
--
--
John Mertic "Explaining a joke
is like dissecting a frog: you
jmertic@gmail.com understand it better,
but the frog dies in the
process."
-Mark Twain
|