⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 video.php

📁 一个基于PHP网页的Flash播放器
💻 PHP
字号:
<?php// requirementsrequire('assoc_to_xml.php');require('mysql_conn.php');?><?php// file_put_contents('vd_post_debug.txt', var_export($_POST, true));$xml_arr = array();if(isset($_POST['video_id'])) {	$sql = "select series_content.title			from series_content				where series_content.wid=".$_POST['video_id'];		connect();		$result = mysql_query($sql);		if ($result) {			$row = mysql_fetch_array($result);			$xml_arr['video_id'] = $_POST['video_id'];		$xml_arr['movieSrc'] = 'video/'.$_POST['video_id'].'.flv';		$xml_arr['avgRating'] = 5;		$xml_arr['img1'] = 'image/imgtransicao_1.jpg';		$xml_arr['img2'] = 'image/imgtransicao_1.jpg';		$xml_arr['movieTitle'] = $row['title'];	}		close();}		/*$xml_arr['commercials'] = array();		$xml_arr['commercials'][0] = array();	$xml_arr['commercials'][0]['time'] = 20;	$xml_arr['commercials'][0]['movieSrc'] = array();	$xml_arr['commercials'][0]['movieSrc'][0] = 'video/commercial(PAM)_100k.flv';	$xml_arr['commercials'][0]['movieSrc'][1] = 'video/commercial(MIDAS)_100k.flv';	$xml_arr['commercials'][0]['movieSrc'][2] = 'video/commercial(Raisinets)_100k.flv';	$xml_arr['commercials'][0]['movieSrc'][3] = 'video/commercial(MovieTickets)_100k.flv';	$xml_arr['commercials'][1] = array();	$xml_arr['commercials'][1]['time'] = 48;	$xml_arr['commercials'][1]['movieSrc'] = array();		$xml_arr['commercials'][1]['movieSrc'][0] = 'video/commercial(Ambiencr)_100k.flv';				$xml_arr['commercials'][2] = array();	$xml_arr['commercials'][2]['time'] = 67;	$xml_arr['commercials'][2]['movieSrc'] = array();	$xml_arr['commercials'][2]['movieSrc'][0] = 'video/commercial(Musinex)_100k.flv';	$xml_arr['commercials'][2]['movieSrc'][1] = 'video/commercial(Comcast)_100k.flv';	$xml_arr['commercials'][3] = array();	$xml_arr['commercials'][3]['time'] = 88;	$xml_arr['commercials'][3]['movieSrc'] = array();	$xml_arr['commercials'][3]['movieSrc'][0] = 'video/commercial(ColdCasetrail_100k.flv';	$xml_arr['commercials'][3]['movieSrc'][1] = 'video/commercial(SmartStartCer_100k.flv';*/// output$xml = assocToXML($xml_arr);// file_put_contents('vd_res_debug.txt', $xml);echo $xml;?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -