Jump to content

Browsing directories


lional

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
Link to comment
https://forums.phpfreaks.com/topic/15017-browsing-directories/
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.
Link to comment
https://forums.phpfreaks.com/topic/15017-browsing-directories/#findComment-60388
Share on other sites

Archived

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

×
×
  • Create New...

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.