You are here: Or syntax for directory search « PHP Programming Language « IT news, forums, messages
Or syntax for directory search

Posted by mikefromvt on 06/19/07 14:13

Hi.

We use a script written in PHP that uses a simple ls command to
identify files typed into a form. Our directory structure includes
either a one or two steps away from public directory location of
files, in other words, either

1. [DIR]/[file].[ext] or
2. [DIR]/[DIR]/[file].[ext]

current syntax

.../*/$[variable].[ext]

stops at 1 and fails to find files in 2

I modified as follows

.../*{1,2}/$[variable].[ext]
or
.../*+/$[variable].[ext]

without success.

Anyone know the right regular expression syntax for PHP to properly
configure script to look for a possible subdirectory prior to
determining whether or not a file type exists or not?

Thanks

Mike

 

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

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