Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ʹÓÃFlexºÍPHP´´½¨×Ô¼ºµÄÊÓƵӦÓÃ


À´Ô´£ºÀ¶É«ÀíÏë¡¡×÷ÕߣºDreamer¡¡2007Äê10ÔÂ16ÈÕ 14:50¡¡ÍøÓÑÆÀÂÛ£º0Ìõ¡¡µã»÷£º
2737
DreamerµÄBlog£ºwww.zhuoqun.net/
Ó¢ÎÄÔ­ÎÄ£ºCreating MyTube with Flex and PHP
Ô­ÎĵØÖ·£º
http://www.onlamp.com/pub/a/php/2007/05/24/creating-mytube-with-flex-and-php.html
Ô­ÎÄ×÷ÕߣºJack Herrington
Ëæ×Å¿í´øµÄÆÕ¼°¡¢Ó²ÅÌ¿Õ¼äµÄ¼Û¸ñ³ÖÐø½µµÍÒÔ¼°Adobe® Flash® Player ºÍ Flash VideoµÄʵÓÃÐÔ£¬ÊÓƵ·ÖÏíÔÚ»¥ÁªÍøÉÏ·è¿ñÁ÷ÐÐÊDz»×ãΪÆæµÄ¡£ÏñGoogle video ºÍ YouTube ÕâÑùµÄÕ¾µãÊÇÁìÍ·Ñò£¬¶øÏÖÔÚÒѾ­µ½´¦¶¼ÊÇСÐ͵ÄÊÓƵ·ÖÏíÕ¾µãÁË¡£ÄÇô£¬ÈçºÎ²ÅÄܼÓÈëµ½³±Á÷ÖÐÈ¥ÄØ£¿ÈçºÎÀûÓÃÏñPHP, FlashºÍAdobe Flex™ µÈ¼¼ÊõÀ´´´½¨×Ô¼ºµÄÊÓƵ·ÖÏíÍøÕ¾£¿Ðж¯ÆðÀ´°É£¬Ëü±ÈÄãÏëÏóµÄÒªÈÝÒ׵öࡣ
±¾ÎĽ«¸æËßÄãÈçºÎ´´½¨ÍøÕ¾µÄPHP²¿·ÖÒÔ¼°ÈçºÎʹÓÃFlex¿ò¼Ü´´½¨Ò»¸öÊÓƵ²¥·ÅÆ÷¡£Òª´´½¨Ò»¸öYouTubeµÄ¼òµ¥°æ±¾£¨ÎÒÃÇ¿ÉÒÔ³ÆËüΪMyTube£©£¬ÄãÐèÒªÓÐһЩÊʵ±µÄ¹¤¾ß¡£
ÔÚ·þÎñÆ÷¶Ë£¬ÄãÐèÒªPHP ºÍ MySQL¡£MySQLÊÇÓÃÀ´´æ´¢ÓйØÊÓƵµÄÊý¾ÝµÄ£¨±ÈÈçÊÓƵµÄÎļþÃû£¬ËõÂÔͼ£¬ËõÂÔͼµÄ¸ß¶ÈºÍ¿í¶È£¬±êÌâºÍÃèÊö£©¡£PHP½«Íê³É¸ñʽ»¯Ò³ÃæµÄ¹¤×÷£¬°üÀ¨HTMLºÍXMLÒ³Ã棬ÕâÈ¡¾öÓÚÄãÏëÒªÔõô×ö¡£
Ä㻹ÐèÒªÒ»¸ö¿ªÔ´µÄÈí¼þ£ºffmpeg£¬Ëü¿ÉÒÔ½«Óû§ÉÏ´«µÄÈκθñʽµÄÊÓƵÎļþת»»³ÉFlash VideoÎļþ£¨FLV£©¡£µ±ÄãÏòÓû§Õ¹Ê¾Ò»¸ö¿ÉÓõÄÊÓƵÁбíʱ£¬Õâ¸ö ffmpeg Èí¼þ»¹¿ÉÒÔÉú³ÉÊÓƵÖÐijһ֡µÄËõÂÔͼ¡£ºÁÎÞÒÉÎÊ£¬ÔÚÊÓƵ·ÖÏíµÄÊÀ½çÖÐffmpeg »áÊÇÄã×îºÃµÄÖúÊÖ¡£ËüÊÇÒ»¸ö¹¦ÄÜÇ¿´ó¡¢Ò×ÓÚʹÓöøÇÒÎĵµÆëÈ«µÄ¼«ÎªÓÅÐãµÄÈí¼þ¡£
ÔÚ¿Í»§¶Ë£¬Óм¸ÖÖ²»Í¬µÄÓû§½çÃæ¿É¹©Ñ¡Ôñ¡£µÚÒ»ÖÖ¾ÍÊÇÀàËÆÓÚYouTubeµÄHTML/Flash»ìºÏʽµÄÓû§½çÃ棬ÁíÍâÒ»ÖÖ¾ÍÊÇÍêÈ«»ùÓÚFlashµÄÓû§½çÃæ¡£ÕâÀïÎÒÑ¡ÔñÁËFlex¿ò¼ÜÀ´´´½¨Ò»¸öFlash³ÌÐò£¬Õâ¸ö³ÌÐòÊ×ÏȲ¥·ÅÊÓƵ£¬È»ºó»áÁгöÒ»¸ö¿ÉÓÃÊÓƵµÄÁÐ±í²¢Ìṩµ¼º½¡£
´´½¨PHPºǫ́
´´½¨ºǫ́µÄ³ÌÐò֮ǰ£¬Äã±ØÐëÏÈÔÚMySQL½¨Á¢Ò»Ð©Êý¾Ý¿âģʽ£¨schema£©¡£Ê×ÏÈ£¬´´½¨Ò»¸öÊý¾Ý¿â£¬Äã¿ÉÒÔʹÓÃmysqladminÃüÁîÐУº
mysqladmin create movies
Íê³ÉÖ®ºó£¬½«Ä£Ê½¼ÓÔص½Êý¾Ý¿â£¬Ä£Ê½ÎļþÄÚÈÝÈçÏ£º
movies.sql
DROP TABLE IF EXISTS movies;
CREATE TABLE movies (
movieId INTEGER NOT NULL AUTO_INCREMENT,
title VARCHAR( 255 ),
source VARCHAR( 255 ),
thumb VARCHAR( 255 ),
width INTEGER,
height INTEGER,
PRIMARY KEY( movieId )
);
ÒªÏòÊý¾Ý¿âÖÐÌí¼ÓÊý¾Ý£¬ÄãÐ


Ïà¹ØÎĵµ£º

PHPºÍJAVA¿ª·¢µÄOAÐÔÄܱȽÏ

ÏÖÔÚ»¹ÓкܶàÈ˸㲻¶®PHPºÍJAVA¿ª·¢µÄЭͬOAµ½µ×ÓÐʲô²»Í¬£¬¶Ô×Ô¼ºµ½µ×ÓÐʲôӰÏ죬ÒÔÖÁÓÚ×ö³öÁË´íÎóµÄÑ¡Ôñ¶øêݺ¦ÎÞÇî¡£±ÊÕ߸ù¾ÝÁ½ÖÖ¼¼ÊõµÄÌصãÖØÐÂÕûÀíÁËÒ»¸ö¶Ô±È£¬¸ø¹ØÐÄЭͬOA¼¼ÊõµÄ¶ÁÕß×ö¸ö²Î¿¼¡£
         »ªÌ춯Á¦Ð­Í¬OAÊDzÉÓÃJAVA¼¼ÊõµÄµäÐÍ´ú±í£¬²¢¾ßÓÐһϵÁÐÓÅ»¯É ......

PHPÊֲᷭÒëÈÕ¼Ç [6] Èô¸É½á¹¹¸Ä±ä

¹úÇ쳤¼Ù½«ÖÁ£¬ÕæÊÇ¿ªÐÄ¡£ÕâÁ½ÌìÓеãС¿Õ£¬·­ÒëÁËÊÖ²áÖеÄһЩÄÚÈÝ£¬ËãÊǸøPHPerÃǵÄÒ»¸öСÀñÎï¡£
±¾À´Ïë°ÑËùÓÐPHP5.3µÄÐÂÄÚÈݸø¸üÐÂÁË£¬µ«·¢ÏÖÊÖ²áÓкܴóµÄ¸Ä¶¯£¬ÓÈÆäÊÇһЩĿ¼½á¹¹Éϵķ¢¶¯¡£±ØÐëÏȸúÉÏÕâЩ¸Ä¶¯£¬·ñÔò±àÒë»á³ö´í£¬¸ü̸²»ÉϽøÒ»²½µÄ·­Òë¡£
ÕâÁ½ÌìÖ÷Òª×öÁËÒÔϹ¤×÷£º
1. ½«·­Òëƽ̨ǨÒƵ½SVN
PHP¹Ù·½µÄ ......

PHPÒ³Ãæ´«ÖµµÄ6ÖÖ»ñÈ¡·½·¨

1¡¢PHP4ÒÔºó»ñÈ¡´«ÖµµÄ·½·¨
Ò»°ãÔÚÒ³ÃæÖд«Öµ³£¼ûµÄÊÇPOST¡¢GETºÍCOOKIE¼¸ÖÖ£¬ËùÒÔÏÂÃæÎÒÒ²Ö÷Òª½éÉÜÕ⼸ÖÖ¡£PHP4ÒԺ󶼲ÉÓõÄÊÇ$_POST¡¢$_GETµÈÊý×éÀ´»ñÈ¡ÍøÒ³´«Öµ¡£ÔÚPHP3.0¼°ÒÔÏ°汾¶¼ÊÇÓõÄÊÇ$HTTP_POST_VARS¡¢$HTTP_GET_VARSµÈÊý×飬¾ßÌå´úÂëÈçÏÂ
echo $_POST['dopost'];
?>
< form action="weste_net.php" ......

PHPÍøÕ¾¿ª·¢¹ý³ÌÖÐ×¢ÒâÕâЩ°²È«ÖªÊ¶

1¡¢¹ÅÀϵÄÆÛÆ­SQLÓï¾ä
ÔÚĬÈÏģʽÏ£¬¼´Ê¹ÊÇÄãÍüÁË°Ñphp.ini¿½µ½/usr/local/lib/php.iniÏ£¬php»¹ÊÇ´ò¿ªmagic_quotes_gpc=on¡£
ÕâÑùËùÓдÓGET/POST/CookieÀ´µÄ±äÁ¿µÄµ¥ÒýºÅ(')¡¢Ë«ÒýºÅ(")¡¢·´Ð±¸Übackslash(\)ÒÔ¼°¿Õ×ÖÔªNUL
(the null byte)¶¼»á±»¼ÓÉÏ·´Ð±¸Ü£¬ÒÔʹÊý¾Ý¿âÄܹ»ÕýÈ·²éѯ¡£
µ«ÊÇÔÚphp-4-RC2µÄʱºòÒýÈë ......

PHP5ÃæÏò¶ÔÏó£ºObject Cloning

PHP4:
<?
$sample1 = new StdClass();
$sample1->name = "Hasin";
$sample2 = $sample1;
$sample2->name = "Afif";
echo $sample1->name;
?>
In PHP4 it works differently; it will output Hasin, as both are different from 
each other.
PHP5:
<?
$sample1 = new StdClass();
$ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ