Click to See Complete Forum and Search --> : Advice on scripting approach


focus310
03-21-2007, 11:51 AM
Hello:

I was wondering if I could get some advice on how to script the following situation.

The company seeking this functionality is a construction company. They are looking to create an in-house application which will allow them to view documents for a specific job project.

They are currently setup on a network server. Every project has its own directory on the server. All documents pertaining to a specific project is stored within their directory. The documents can be anything: Word, Excel, PDF, etc.

Their business is growing quite rapidly. It is getting difficult to search for documents manually. They would like to have a search capability where they can type in a project number and all the documents for that project be displayed on the screen. As I mentioned before, all documents for a project is stored in their own folder so the search needs to be able to search within all directory structures. I am not quite sure how the directories are named at this time. I'm hoping that the project number is part of the directory name.

Is this possible to accomplish? I attached a graphic image of what they would like to have.

I original thought was to create a database where all documents are stored by project number. If there is a much better way to do this I'd be happy for suggestions.


Thank you all for your time.

iLLin
03-21-2007, 12:47 PM
This network server is a web server?

focus310
03-21-2007, 02:10 PM
Hi,

Yes, it is a web server.

iLLin
03-21-2007, 02:15 PM
This should get you started.

http://www.zend.com/code/codex.php?id=301&single=1

Read up on directory handling in php and you should be able to add in directives that tells it to search within the file name... etc.

Good Luck!

NightShift58
03-22-2007, 06:42 AM
glob() (http://www.php.net/manual/en/function.glob.php)