You are here: Re: Faster read of filenames « PHP Programming Language « IT news, forums, messages
Re: Faster read of filenames

Posted by NC on 10/31/06 15:41

Sonnich wrote:
> Jeff North wrote:
> >
> > glob() maybe?
>
> That might do it, but it is case sensitive.

But of course it is. On Unix, file names are case-sensitive...

> And when trying something like:
>
> foreach (glob($search, GLOB_BRACE ) as $filename)
> {
> echo "$filename <br>";
> }
>
> I get absolutlely nothing. My search paths are something like:
> \\server\somewhere\AB123*.pdf or \\server\somewhere\AB123*.PDF
> Both returns a number of files when runned alone, but adding them
> togther
> $sx = "{".$s1.",".$s2."}";
> does not do the trick.

Try one or more of these:

\\server\somewhere\*123*.pdf
\\server\somewhere\??123*.pdf
\\server\somewhere\{a,A}{b,B}123*.pdf

Cheers,
NC

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация