SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot
    Join Date
    Jun 2003
    Location
    Italy
    Posts
    112
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Download video file from client

    Hi,
    I developped a SW for restaurants, pub, ecc...
    It's developped in php (and html, javascript, mysql) and runs by an Apache webserver (phpdev 4.2.3). The my system is not absolutely connected to the web.

    It is a client-server system: in the server is installed Apache, while the clients are PCs where only a web browser (IE) is running, connected to the server via Wi-Fi.

    I have the following problem:
    I want to show in the clients some videos (huge files); therefore I would kike to avoid to download them everytime from the server (in order to not overload the Wi-fi network).
    The client should call a php page from the server, but the video file should be downloaded from the own (client) HD.
    Is it possible? if yes how?

    May be some COM function?

    May be an idea could be to set a huge cache, so after the first download from the server the video files are taken fro the cache... any idea about how to set it?

    I'm not very expert, I'll really apprieciate if you can add some code rows to help me...

    Thank you very much in advance and ciao from Rome
    Fausto

  2. #2
    SitePoint Addict Trent Reimer's Avatar
    Join Date
    Sep 2005
    Location
    Canada
    Posts
    228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The browsers will have cache settings which you can set. If you search the "help" section for "cache" you should be able to find what you are looking for there.

  3. #3
    SitePoint Zealot
    Join Date
    Jun 2003
    Location
    Italy
    Posts
    112
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank You,
    I'll try...
    also if could be much better to download the files directly from the client PC HD...

    Ciao
    Fausto

  4. #4
    SitePoint Addict Trent Reimer's Avatar
    Join Date
    Sep 2005
    Location
    Canada
    Posts
    228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Fausto70 View Post
    also if could be much better to download the files directly from the client PC HD...
    That makes sense. Unfortunately most respectable browsers will hesitate to allow that because it would be a security risk to have websites calling files on your hard drive.

    A couple ideas though...

    1) If you start with a HTML page on the client computer (possibly some kind of frameset) it may be possible to use Javascript to communicate both with the local hard drive and with the Apache server. Both Firefox and Internet Explorer have the ability to run local HTML pages with the permissions of a normal program. I have used this approach before to build client-side applications. It may take a bit of research though.

    2) You could set up a proxy server on each client computer. The proxy could have instructions to cache the videos but not the rest of the content.

  5. #5
    SitePoint Zealot
    Join Date
    Jun 2003
    Location
    Italy
    Posts
    112
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much again...

    I'll try...

    Ciao
    Fausto


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •