Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.