473,320 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Looking for a php script to embed window media video

I am searching for a php script to embed a video file in my site. I tried writing one but without success using the get/post method.
I wonder if anyone is kind enough to offer one?
Sep 20 '06 #1
3 3599
tbb9216
16
i really need more information of what you are trying, but really, to put a media file of any kind in a webpage wouldnt require php.

just use the <object> tag in html, where for the src you can use php to generate that.
Sep 22 '06 #2
ronverdonk
4,258 Expert 4TB
Do I read you correctly (because you use get/post words) by saying that you are looking for a script with which you can download a video file to your pc?

Ronald :cool:
Sep 23 '06 #3
Thanks for your kind input.

I am looking for a php sample script to embed a video in my site so that the source of the video file is not easily traced such as the one that I googled and found on this site :
http://www.conversysinternational.co...p?channel=test

I thought of consulting the author of this site for the script but no contactable information was found. Tried learning from scratch from PHP.net but . I have already activated my server to support PHP.

I googled and found two scripts which I thought could be modified for my purpose.
I would very much appreciate if someone could help me with the modification:
------------------------------------
<?php
$file_name = $_GET['file'];
header('Content-type: application/force-download');
header('Content-Disposition: attachment; filename="' . basename($file_name) . '";');
readfile($file_name);
?>

-------------------------------------
<? if(file_exist($row['filename'])) { ?>
<embed src="<? echo if(isset($row['filenamevideo']); ?>">
<? } else { echo "not valid "; } ?>
Sep 25 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Franklin P Patchey | last post by:
I have modified some script and think i have put a bit in that isn't "compliant" Is the bit marked below (towards the end) correct - should it be () and not ("") <SCRIPT LANGUAGE="JavaScript">...
5
by: Kim Forbes | last post by:
Hi, I realize my first problem is that I'm using browser detection and not feature detection. Maybe someone can help me understand feature detection. This script works in every browser that I...
8
by: Cowan Services | last post by:
My apologies if this has been covered before, but I was unable to download messages before 11/23/05. I am trying to bring some HTML pages w/embedded .WMV files into W3C compliance. Right now,...
1
by: dragze | last post by:
Hi, On one of the pages of my site i use two javascripts, one makes transparency of png's work in IE, and the other embeds a flash player. Now use one of the scripts it works fine, use both and...
3
by: Anil Gupte | last post by:
I want to embed using an embed tag or object tag (like YouTube or others do) to embed a video file in a web page. I want to know if there is an event related to the video being done playing. Also...
1
by: ttamilvanan81 | last post by:
Hai everyone, I am working with a Image/Video Application. I need to display and play any video file in browser. Now i am using the following Embed Tag. <OBJECT ID="mediaPlayer" ...
6
by: miguel22 | last post by:
Hi, I have a site with one embed video. What is the best way to protect such video file from stealing? I thought different ways: 1. Accessing the file via a hyperlink and then open the video in...
2
dream party
by: dream party | last post by:
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.