fnmatch()无效... [英] fnmatch() is not working ...
问题描述
在win32安装中...是用它编译的还是这是一个缺少的
功能?谢谢
in win32 installation... is it compiled with it or this is a missing
features? Thanks
推荐答案
Ruby Tuesdays在win32安装中写道:
Ruby Tuesdays wrote:
...是用它编译的还是这是一个缺失的
功能?谢谢
in win32 installation... is it compiled with it or this is a missing
features? Thanks
http://www.php.net / fnmatch
< quote>
*警告*
现在这个功能是在Windows或其他非POSIX
兼容系统上不可用。
< / quote>
-
- =我的邮箱只接受= -
- = Content-Type:text / plain = -
- =大小低于10001字节= - -
http://www.php.net/fnmatch
<quote>
*Warning*
For now this function is not available on Windows or other non-POSIX
compliant systems.
</quote>
--
--= my mail box only accepts =--
--= Content-Type: text/plain =--
--= Size below 10001 bytes =--
感谢Pedro,还有什么选择?
imagename可以是以下内容:
A.bmp
A.tiff
一个dark.tif
一个lite.bmp
AB.jpg
AB.tif
BB.bmp
BB.jpg
BB.png
BB topleft.png
BB topleft.jpg
GA.png
GA cropped.gif >
GA cropped.jpg
BB lowerright.jpg
BB lowerright.gif
等...
如果我知道图像名称的完整/部分名称(1-2个字符中的第一个),并且
类型可以在下面(第一个是最高优先级):png,
jpg,bmp,tif,gif
如果存在< fullname> .png则显示图片
else如果存在< fullname>。 jpg然后显示图像
否则如果存在< fullname> .bmp然后显示图像
else如果存在< fullname> .tif然后显示图像
else如果存在< fullname> .gif然后显示图片
否则如果存在<部分名称> .png的第一个匹配然后显示图像
else if else< ;部分名称的首次匹配> .jpg然后显示图像
否则如果存在<部分名称的首次匹配> .bmp然后显示图像
否则如果存在< first匹配部分名称> .tif然后显示图像
否则,如果存在<部分名称的首次匹配> .gif然后显示图像
else显示no-image.jpg
我该怎么办?高效地搜索目录(子文件夹搜索会很好但是现在不需要
)。
谢谢。
" ; Pedro Graca <他**** @ hotpop.com>在消息中写道
news:c2 ************* @ ID-203069.news.uni-berlin.de ...
Thanks Pedro, what''s the alternative?
imagename can be of the following:
A.bmp
A.tiff
A dark.tif
A lite.bmp
AB.jpg
AB.tif
BB.bmp
BB.jpg
BB.png
BB topleft.png
BB topleft.jpg
GA.png
GA cropped.gif
GA cropped.jpg
BB lowerright.jpg
BB lowerright.gif
etc...
If I know full/partial name(First of 1-2 characters) of the image name, and
the type could be in the following(1st one is the highest priority): png,
jpg, bmp, tif, gif
if exist <fullname>.png then display image
else if exist <fullname>.jpg then display image
else if exist <fullname>.bmp then display image
else if exist <fullname>.tif then display image
else if exist <fullname>.gif then display image
else if exist <first match of partial name>.png then display image
else if exist <first match of partial name>.jpg then display image
else if exist <first match of partial name>.bmp then display image
else if exist <first match of partial name>.tif then display image
else if exist <first match of partial name>.gif then display image
else display no-image.jpg
How do I search a directory efficiently(sub-folder search would be nice but
not necessary for now).
Thanks.
"Pedro Graca" <he****@hotpop.com> wrote in message
news:c2*************@ID-203069.news.uni-berlin.de...
Ruby Tuesdays在win32安装中写道:
Ruby Tuesdays wrote:
...是用它编译的还是这是一个缺少的
功能?谢谢
in win32 installation... is it compiled with it or this is a missing
features? Thanks
http://www.php.net / fnmatch
< quote>
*警告*
目前此功能在Windows或其他非POSIX上不可用>合规系统。
< / quote>
-
- =我的邮箱只接受= -
- = Content-Type:text / plain = - -
- =大小低于10001字节= -
http://www.php.net/fnmatch
<quote>
*Warning*
For now this function is not available on Windows or other non-POSIX
compliant systems.
</quote>
--
--= my mail box only accepts =--
--= Content-Type: text/plain =--
--= Size below 10001 bytes =--
[请不要发帖]
Ruby周二发布(更正):
[Please do not top post]
Ruby Tuesdays top-posted (corrected):
" Pedro Graca" <他**** @ hotpop.com>在消息中写道
新闻:c2 ************* @ ID-203069.news.uni-berlin.de ...
"Pedro Graca" <he****@hotpop.com> wrote in message
news:c2*************@ID-203069.news.uni-berlin.de...
Ruby Tuesdays写道:
Ruby Tuesdays wrote:
>在win32安装...是用它编译还是这是一个缺少的
>特征?谢谢
http://www.php.net/fnmatch
> in win32 installation... is it compiled with it or this is a missing
> features? Thanks
http://www.php.net/fnmatch
感谢Pedro,还有什么选择?
Thanks Pedro, what''s the alternative?
fnmatch()手册中的一个功能页面可能会做你想要的。
或者,至少,让你开始使用解决方案。
如果你遇到问题,发布你做的代码到目前为止。
-
- =我的邮箱只接受= -
- = Content-Type:text / plain = -
- =大小低于10001字节= -
One of the function on the fnmatch() manual page might do what you want.
Or, at least, get you started with a solution.
If you run into problems, post the code you made so far.
--
--= my mail box only accepts =--
--= Content-Type: text/plain =--
--= Size below 10001 bytes =--
这篇关于fnmatch()无效...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!