Jump to content


Browsing directories

  • Please log in to reply
1 reply to this topic

#1 lional

  • Members
  • PipPipPip
  • Advanced Member
  • 266 posts

Posted 19 July 2006 - 09:18 AM

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



#2 ShogunWarrior

  • Members
  • PipPipPip
  • Advanced Member
  • 528 posts
  • LocationIreland

Posted 19 July 2006 - 10:12 AM

Well PHP can run programs using exec, shell_exec or system 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.
<a href="http://www.daviddora...nmedia.com/">My New Site/Blog</a> | <a href="http://www.daviddora...m/check/">Check your page for broken links/images/scripts</a>

Zend Certified Engineer
Follow me on Twitter: http://twitter.com/davidd

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users