Jump to content


Photo

checking is a file is available


  • Please log in to reply
1 reply to this topic

#1 careysizer

careysizer
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 06 May 2006 - 09:35 PM

so heres what i want to do. im setting up a website for my school - students page. i want to include lots of video as theres a bit of video editing that goes on, and we are looking at doing a monthly video.

when the students are logged onto the network, i want the website to look for the video file stored on the shared drive (ie \\intranet\studentsweb\video.ext) but if its not available - if they are on the website at home I want it it to play off the website's server.

can i do this using php? if the network version is available play straight away (this is to save bandwidth and load times) and if its not, reload the normal internet version page?

thanks
carey

#2 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 07 May 2006 - 11:03 PM

Try the file_exists() function - Check the manual for more information.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users