voorbeeld.php
Gesponsorde koppelingen
PHP script bestanden
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
include('embed.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test site</title>
</head>
<body>
<?php
//gewoon een video
$video=new video_embed();
$video->embed("video url" , "typ het woord 'play' voor autoplay zonder '' ");
?>
<?php
//meerdere videos
$video=new video_embed();
$video->embed("http://youtube.com/watch?v=MgV0PjNw3Qw" , "play");
$video->embed("http://video.google.com/videoplay?docid=-6511716987227605917" , "play");
$video->embed("http://one.revver.com/watch/421951");
$video->embed("http://one.revver.com/watch/421951/flv");
$video->embed("http://www.metacafe.com/watch/854726/photoshop_match_color_simple_and_amazing_results/");
$video->embed("http://www.liveleak.com/view?i=f23792e462");
$video->embed("http://www.liveleak.com/view?i=f23792e462&p=1", "play");
?>
</body>
</html>
include('embed.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test site</title>
</head>
<body>
<?php
//gewoon een video
$video=new video_embed();
$video->embed("video url" , "typ het woord 'play' voor autoplay zonder '' ");
?>
<?php
//meerdere videos
$video=new video_embed();
$video->embed("http://youtube.com/watch?v=MgV0PjNw3Qw" , "play");
$video->embed("http://video.google.com/videoplay?docid=-6511716987227605917" , "play");
$video->embed("http://one.revver.com/watch/421951");
$video->embed("http://one.revver.com/watch/421951/flv");
$video->embed("http://www.metacafe.com/watch/854726/photoshop_match_color_simple_and_amazing_results/");
$video->embed("http://www.liveleak.com/view?i=f23792e462");
$video->embed("http://www.liveleak.com/view?i=f23792e462&p=1", "play");
?>
</body>
</html>