jonperks Posted November 16, 2006 Share Posted November 16, 2006 I guess its not strictly php but I'm looking for a php solution...I have a wmv video in a htaccess protected folder. If i embed this video even with the user logged in, it wont play. Any ideas? I need the video to be protected so that only members can view it. Thanks... Quote Link to comment https://forums.phpfreaks.com/topic/27443-embed-video-and-htaccess/ Share on other sites More sharing options...
fiddy Posted November 16, 2006 Share Posted November 16, 2006 In embed src you point to a php file (src="url.php"). In URL.php you print the path of the video file (echo "xxxxx";). At the top of the page in url.php you check if the user has loggedin or not (using cookie or session). ONly if the user is logged in you print the URL(path to video file). Quote Link to comment https://forums.phpfreaks.com/topic/27443-embed-video-and-htaccess/#findComment-125486 Share on other sites More sharing options...
fiddy Posted November 16, 2006 Share Posted November 16, 2006 I have not tried it. But i guess it works. Please give a try and also let me know..Thanks Quote Link to comment https://forums.phpfreaks.com/topic/27443-embed-video-and-htaccess/#findComment-125487 Share on other sites More sharing options...
jonperks Posted November 16, 2006 Author Share Posted November 16, 2006 It doesn't appear to work. I think its purely the htaccess now allowing the file to be included in an embed?Thanks Quote Link to comment https://forums.phpfreaks.com/topic/27443-embed-video-and-htaccess/#findComment-125489 Share on other sites More sharing options...
fiddy Posted November 16, 2006 Share Posted November 16, 2006 kindly remove the redirect or what ever before trying this... Quote Link to comment https://forums.phpfreaks.com/topic/27443-embed-video-and-htaccess/#findComment-125490 Share on other sites More sharing options...
fiddy Posted November 16, 2006 Share Posted November 16, 2006 i mean in htaccess Quote Link to comment https://forums.phpfreaks.com/topic/27443-embed-video-and-htaccess/#findComment-125491 Share on other sites More sharing options...
jonperks Posted November 16, 2006 Author Share Posted November 16, 2006 i've got a seperate video not in the htaccess file that i can try and if i do the url.php idea you suggested it still doesn't work. I have tried this other video in the normal way and it works fine??Any other ideas....Thanks for you help Quote Link to comment https://forums.phpfreaks.com/topic/27443-embed-video-and-htaccess/#findComment-125492 Share on other sites More sharing options...
jonperks Posted November 16, 2006 Author Share Posted November 16, 2006 I pressume your idea is that you hide the video url from the user? Quote Link to comment https://forums.phpfreaks.com/topic/27443-embed-video-and-htaccess/#findComment-125493 Share on other sites More sharing options...
fiddy Posted November 16, 2006 Share Posted November 16, 2006 Yeah my idea was to hide the url from user. Presently no ideas other than this if any will post. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/27443-embed-video-and-htaccess/#findComment-125495 Share on other sites More sharing options...
jonperks Posted November 16, 2006 Author Share Posted November 16, 2006 Thanks anyway, there must be a way to do it. I don't see how its different to storing any other files in a htaccess protected folder Quote Link to comment https://forums.phpfreaks.com/topic/27443-embed-video-and-htaccess/#findComment-125498 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.