当前位置:Gxlcms > PHP教程 > 视频网站的制作例子三_PHP教程

视频网站的制作例子三_PHP教程

时间:2021-07-01 10:21:17 帮助过:7人阅读

The first video starts right when I open the page. As I select each movie from the list on the right, the page reloads and shows the movie I selected.

How sweet and simple was that? One Flex file, one PHP file, and a little database magic for the backend, and viola! Video sharing!

The next step is to see whether you can enhance the user experience a bit by doing more of the work in Flex.

The Flex Interface, Part 1

If you want to provide a mechanism for Flex to show any movie, you must provide the Flex application with the list of movies. The most convenient way to do that is through XML. So, going back to PHP again, you need a page exports the movie list from the database as XML. This movies.php page is shown in Listing 6.

Listing 6. movies.php
getMessage()); }
?>

query( 'SELECT title, source, thumb, width, height FROM movies' );
while( $row = $res->fetchrow( ) ) {
?>
  

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/632017.htmlTechArticleThe first video starts right when I open the page. As I select each movie from the list on the right, the page reloads and shows the movie I selected. How sweet and simple was that...

人气教程排行