Jump to content

Archived

This topic is now archived and is closed to further replies.

lional

Browsing directories

Recommended Posts

Hi All
I am trying to write a web application that will only run on 1 pc as a small Intranet that keeps a record of all clients.
I would also like to store all notes, folders, images and voice messages in a folder for each client.
Can PHP browse to a directory, to view the files in that directory and if a file is opened can it use the program that is associated with that file type to run that file.
Windows XP is being used as the operating system

Thanks

Lional

Share this post


Link to post
Share on other sites
Well PHP can run programs using [b]exec[/b], [b]shell_exec[/b] or [b]system[/b] but it can only run programs on the server side, and it has to wait for them to close.

What you'd have to do is server the file for download and let the person click open to open the right application.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.