Current location: Hot Scripts Forums » Programming Languages » PHP » Streaming Video Using PHP


Streaming Video Using PHP

Reply
  #1 (permalink)  
Old 02-26-06, 07:39 PM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,171
Thanks: 3
Thanked 9 Times in 9 Posts
Streaming Video Using PHP

Here is what I am trying to do:

1- Place a large (50MB to 100MB) video files outside the servers web directory.

2- Have the user log into a PHP/MySQL based login system, and validate the username and password against a MySQL Database.

3- If valid user, I want to read the video file from outside the web directory and deliver it to the user for viewing or download.

I am already doing this easily with images. However, it doesn't seem to work well with videos, since the PHP script times out. I have tried extending the timeout period, but its hard to guess correctly how long the download will take, specially if the user is on a dialup connection.

I don't want to use .htaccess based password system to protect the video files inside the web directory. Has anyone done this before?


Pete
__________________
Reply With Quote
  #2 (permalink)  
Old 02-27-06, 09:07 AM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,171
Thanks: 3
Thanked 9 Times in 9 Posts
Found the answer to my question. The answer is the "fpassthru();" PHP function.
__________________
Reply With Quote
  #3 (permalink)  
Old 02-27-06, 11:44 AM
Pineriver Pineriver is offline
Newbie Coder
 
Join Date: Apr 2005
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Also the header("Location") function works
__________________
Web PHP Programmer - http://vmist.net
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
streaming 3 types of video pkcidstudio Flash & ActionScript 0 12-15-05 12:28 PM
Streaming Video for FREE Worldwide! No Catch! crmpicco The Lounge 0 10-27-05 08:30 AM
PHP multi-dimensional array sorting issue aqw PHP 2 06-24-05 11:09 PM
PHP / Graphic Developers someotherguy582 Job Offers & Assistance 1 06-05-05 07:40 PM
Streaming Video Access & Database Management Control ClearVision Script Requests 0 03-16-05 01:46 AM


All times are GMT -5. The time now is 06:35 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.