P2P视频点播平台已经不再是什么稀奇玩意,今天我们来看一下基于WebPlayer9+vodcms打造P2P视频点播平台。为什么用WebPlayer9?因为我们学校图书馆视频点播用的就是它,这样可以做到兼容。
首先,请区分Webplayer和webplayer9,这不是同一个播放器哦。
平台介绍:
PC1:10.1.10.144 安装Webplayer9服务端,电影放在这里。
PC2:10.1.10.157 安装vodcms,前台web服务端,同时直接使用该机器测试。
Summary Table
Address Block Present Use Reference
———————————————————————
0.0.0.0/8 “This” Network [RFC1700, page 4]
10.0.0.0/8 Private-Use Networks [RFC1918]
14.0.0.0/8 Public-Data Networks [RFC1700, page 181]
24.0.0.0/8 Cable Television Networks –
39.0.0.0/8 Reserved but subject
to allocation [RFC1797]
127.0.0.0/8 Loopback [RFC1700, page 5]
128.0.0.0/16 Reserved but subject
to allocation –
169.254.0.0/16 Link Local –
172.16.0.0/12 Private-Use Networks [RFC1918]
191.255.0.0/16 Reserved but subject
to allocation –
192.0.0.0/24 Reserved but subject
to allocation –
192.0.2.0/24 Test-Net
192.88.99.0/24 6to4 Relay Anycast [RFC3068]
192.168.0.0/16 Private-Use Networks [RFC1918]
198.18.0.0/15 Network Interconnect
Device Benchmark Testing [RFC2544]
223.255.255.0/24 Reserved but subject
to allocation –
224.0.0.0/4 Multicast [RFC3171]
240.0.0.0/4 Reserved for Future Use [RFC1700, page 4]
From RFC3330
很久没有用php了,没想到变了很多的东西。详细的步骤看这个http://drupalchina.org/node/2688(老版本)本文只介绍需要变更的部分。
1.php5.3的变化
一共给了四个版本,VC9 x86 Non Thread Safe、VC9 x86 Thread Safe、VC6 x86 Non Thread Safe、VC6 x86 Thread Safe,
VC6 版本是使用 Visual Studio 6 编译器编译的,如果你的 PHP 是用 Apache 来架设的,那你就选择 VC6 版本。
VC9 版本是使用 Visual Studio 2008 编译器编译的,如果你的 PHP 是用 IIS 来架设的,那你就选择 VC9 版本。
这里要选“VC6 x86 Thread Safe” php-5.3.1-Win32-VC6-x86.zip
2.mysql扩展
打开php.ini文件并找到;extension_dir=”./”,去掉前面的 ; 并修改为extension_dir=”d:/php5/ext”
找到 ;extension=php_mysql.dll 这一行,去掉前面的“;”,使PHP支持MySQL数据库
3.其他的没什么了,phpinfo里多了个mysqlnd,ms没什么用。