You are here: Re: opening a file when you do not know the full name « PHP Programming Language « IT news, forums, messages
Re: opening a file when you do not know the full name

Posted by pangea33 on 12/04/06 04:19

Michael Fesser wrote:
> .oO(bill)
>
> >I have a directory into which I upload pictures. I know the
> >entire file name other than the extension.
> >
> >file_exists will return true when I give it a wildcard extension,
> >but I can't figure out the best way to determine the extension
> >for fopen.
>
> http://www.php.net/glob
>
> Micha

Not so sure that I agree using a function in an application, that
communicates with the OS via a webserver, is a better choice than
something native to the operating system, but this solution will
definitely work. Probably easier to handle the result set too.

 

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

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