PHPÒôÀÖ²¥·Å³ÌÐò
ÔÚÍøÉÏÕÒµ½2¶ÎPHPÒôÀÖ²¥·Å³ÌÐò£¬ÓпÕÔÙÍêÉÆÒ»Ï£¬Ð´¸ö¹¦ÄÜ±È½ÏÆëÈ«µÄ
²âÊÔÔËÐл·¾³£ºWindowsXP+APMServ 5.2.6
ÔÚCoreAmp PHP5.3.1ÉÏÃæÔËÐÐҪôÎÞ½á¹û£¬ÒªÃ´ÔËÐв»Õý³£¡£-/\-
1¡£Õâ¸öÀý×Ó¹¦ÄܱȽÏÇ¿´ó£¬½«phpÎļþÉÏ´«µ½º¬ÓÐmp3¸èÇúµÄĿ¼ºóÔËÐУ¬³ÌÐò»á×Ô¶¯Ñ°ÕÒmp3¸èÇú²¢Éú³ÉÓиèÊÖר¼µÈÐÅÏ¢ÄÜÏÂÔØÄÜÊÔÌýµÄ¾²Ì¬Ò³Ãæ¡£<?
/*****************************************************************
Ö±½Ó¶ÁÈ¡mp3¸èÇúµÄ¸èÊÖר¼¸è´ÊµÈÐÅÏ¢£¬ÉÏ´«µ½º¬ÓÐmp3¸èÇúµÄĿ¼ºóÔËÐÐ
³ÌÐò»á×Ô¶¯Ñ°ÕÒmp3¸èÇú²¢Éú³É¾²Ì¬Ò³Ãæ¡£
******************************************************************/
// Config
$sitename = "¸èÇúÐÅÏ¢Áбí";
$copyright = "<a href='#' target=_blank> © 2010 </a>";
//End config
class readid3v23 {
/**
* Mp3 ID3V23x¶ÁÈ¡Àà
*/
var $filename = "²Ü²Ù.mp3";
var $fp;
var $tag;
var $major_version;
var $revision_number;
var $flags;
var $total_size;
var $title;
var $artist;
var $album;
var $year;
var $comments;
var $ulack;
var $genre;
var $lyric;
function getfilename($file){
}
function openfile(){
$this->fp = fopen($this->filename, "rb") or die("´ò¿ªÎļþ".$this->filename."ʧ°Ü!");
}
function readid3v23($file){
$this->filename = $file or die("Îļþ²»ÄÜΪ¿Õ");
$this->openfile();
if(($this->tag = fread($this->fp, 3)) != 'ID3' ) return False;
$this->major_version = dechex(bin2hex(fread($this->fp, 1)));
$this->revision_number = dechex(bin2hex(fread($this->fp, 1)));
$this->flags = fread($this->fp, 1);
$this->total_size = ord(fread($this->fp, 1))*0x200000 + ord(fread($this->fp, 1))*0x400 + ord(fread($this->fp, 1))*0x80 + ord(fread($this->fp, 1));
for ($i=0;$i<$this->total_size;){
$i+=10;
$FrameID = fread($this->fp, 4);
$Fsize = ord(fread($this->fp, 1))*0x100000000 + ord(fread($this->fp, 1))*0x10000 + ord(fread($this->fp, 1))*0x100 + ord(fread($this->fp, 1));
if($Fsize == 0) break;
$Fflags = fread($this->fp,2);
$Ftext = fread($this->fp,$Fsize);
$i+=$Fsi
Ïà¹ØÎĵµ£º
ÔÎÄÁ´½Ó£ºhttp://www.phpdo.net/index.php/2010/01/28/1-4/
ǰÎĽéÉÜÁËPHPµÄÓïÑÔ¹¹³ÉÓ빤×÷ÔÀí£¬½ÓÏÂÀ´Õýʽ½éÈëPHPµÄÓï·¨¡£
ÔÚPHPÖУ¬»ù±¾Êý¾Ý¿É·ÖΪ³£Á¿ºÍ±äÁ¿Á½ÖÖ¡£¶øphpµÄ³£Á¿ºÍ±äÁ¿Ãûͨ³£³ÆÎª±êʶ·û¡£
ÐèҪעÒâµÄÊDZêʶ·û±ØÐëÒÔ×Öĸ»òÕßÏ»®Ïß¿ªÍ·£¬²¢ÇÒÖ»ÄܰüÀ¨×Öĸ¡¢Êý×ÖºÍÏ»®Ïß¡£
³£Á¿µÄ ......
PHP ÊÇÒ»ÖÖ´´½¨¶¯Ì¬½»»¥ÐÔÕ¾µãµÄÇ¿ÓÐÁ¦µÄ·þÎñÆ÷¶Ë½Å±¾ÓïÑÔ¡£
PHP ÊÇÃâ·ÑµÄ£¬²¢ÇÒʹÓ÷dz£¹ã·º¡£Í¬Ê±£¬¶ÔÓÚÏñ΢Èí ASP ÕâÑùµÄ¾ºÕùÕßÀ´Ëµ£¬PHP ÎÞÒÉÊÇÁíÒ»ÖÖ¸ßЧÂʵÄÑ¡Ïî¡£PHP ¼«ÆäÊʺÏÍøÕ¾¿ª·¢£¬Æä´úÂë¿ÉÒÔÖ±½ÓǶÈë HTML ´úÂë¡£
PHP Óï·¨·Ç³£ÀàËÆÓÚ Perl ºÍ C¡£PHP ³£³£´îÅä Apache (web ·þÎñÆ÷) Ò»ÆðʹÓᣲ»¹ýËüÒ²Ö§³Ö I ......
µÚ1Õ LAMPÍøÕ¾¹¹½¨ 1
1.1 ÍøÕ¾Èí¼þ¼ò½é.... 1
1.1.1 B/SÈí¼þÌåϵ½á¹¹... 1
1.1.2 ¶¯Ì¬ÍøÕ¾½éÉÜ... 2
1.2 ¶¯Ì¬ÍøÕ¾Èí¼þ¿ª·¢ËùÐèµÄWeb¹¹¼þ.... 3
1.2.1 ¿Í»§¶Ëä¯ÀÀÆ÷... 4
1.2.2 À©Õ¹³¬Îı¾±ê¼ÇÓïÑÔXHTML. 5
1.2.3 ²ãµþÑùʽ±íCSS. 6
1.2.4 ......
ÔÚPHP½Å±¾ÖбäÁ¿Ö÷ÒªÓУºÄÚÖ󬼶ȫ¾Ö±äÁ¿£¬Ò»°ãµÄ±äÁ¿£¬³£Á¿£¬È«¾Ö±äÁ¿£¬¾²Ì¬±äÁ¿µÈµÈ£¬ÎÒÃÇÔÚʹÓÃËüÃǵÄʱºò³ýÁËÒªÕýÈ·µØÖªµÀËüÃǵÄÓï·¨ÒÔÍ⣬¸üÖØÒªµÄÊÇ£¬ÎÒÃÇÒªÖªµÀËüÃÇÔÚ±¾ÖÊÉϵÄÇø±ðÓëÁªÏµ—¼´ËüÃǵÄ×÷ÓÃÓòµÄÎÊÌâ¡£
1.ÄÚÖ󬼶ȫ¾Ö±äÁ¿¿ÉÒÔÔڽű¾µÄÈκεط½Ê¹ÓúͿɼû¡£¼´ÊÇ˵£¬Èç¹ûÎÒÃÇÔÚÒ»¸öPHPÒ³ÃæÖиıäÁËÆ ......
¶ÔÓÚÄÇЩ¸Õ¸Õ½Ó´¥PHPÓïÑÔµÄÅóÓÑÀ´Ëµ£¬Ê²Ã´ÊÇPHPÐòÁл¯¸ñʽ¿ÉÄÜ´ó¼Ò¶¼»¹ÊDz»Ì«Çå³þ¡£ÎÒÃǽñÌì¾ÍΪ´ó¼ÒÏêϸ½²½âÕâÒ»·½ÃæµÄ֪ʶ¡£
PHP £¨´Ó PHP 3.05 ¿ªÊ¼£©Îª±£´æ¶ÔÏóÌṩÁËÒ»×éÐòÁл¯ºÍ·´ÐòÁл¯µÄº¯Êý£ºserialize¡¢unserialize¡£²»¹ýÔÚ PHP ÊÖ²áÖжÔÕâÁ½¸öº¯ÊýµÄ˵Ã÷½öÏÞÓÚÈçºÎʹÓ㬶ø¶ÔÐòÁл¯½á¹ûµÄ¸ñʽȴû×öÈκÎ˵Ã÷¡£ ......