You are here: Re: How do you delete a zip file from a directory? « PHP Programming Language « IT news, forums, messages
Re: How do you delete a zip file from a directory?

Posted by Tim Roberts on 10/14/06 05:15

"comp.lang.php" <phillip.s.powell@gmail.com> wrote:
>
>Tim Roberts wrote:
>>
>> You shouldn't worry too much about efficiency until you try it. Try doing
>> an "ls *.zip" from a command line; the "glob" is going to take roughly the
>> same time. The Unix directory APIs are pretty efficient.
>
>Ok cool, however, the requirements for this portable web app is that it
>must work in both Unix and Windows environments equally, thus,
>obviously can't just do "ls *.zip" but also "dir /w *.zip" as well;

I did not suggest that you actually use "ls *.zip" in your app. I
suggested that you do it ONE TIME and notice how quickly it runs, because
it uses essentially the same mechanism that "glob" will use. My purpose in
doing so was merely to reassure you that "glob" is not inefficient.

>how does "glob" play with Windows?

It works fine on Windows.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

 

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

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