Reply to Re: opening a file when you do not know the full name

Your name:

Reply:


Posted by bill on 12/04/06 11:39

pangea33 wrote:
> 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.
>

In my case where there is only one result, should work a treat.

Thanks

bill

[Back to original 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

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