php - getID3 get mp3 length unexspected T_ECHO -
I want to get the length of the MP3 file in PHP. The code I received from Google is derived from IID, but it does not work.
I always get the following error and I know how can I fix it.
My PHP-code: You have lost a semicolon at the end of this line PHP Parse error: Syntax error, in unexpected T_ECHO /.../getDuration.php on line 17
& lt ;? Php $ include = dirname (__ file__). '/'; Includes_Anx Dollars include 'Getid3.php'; Includes_One Dollars include 'Getid3.lib.php'; Includes_Anx Dollars include 'Module.audio.mp3.php'; Includes_Anx Dollars include 'Module.tag.apetag.php'; Includes_Anx Dollars include 'Module.tag.id3v1.php'; Includes_Anx Dollars include 'Module.tag.id3v2.php'; $ PathName = '/var/hi/audio/audio.mp3'; $ GetID3 = new getID3; $ ThisFileInfo = $ getID3- & gt; Analysis ($ pathname) $ thisFileInfo ['playtime_string'] echo; ? & Gt;
$ ThisFileInfo = $ getID3- & gt; Analysis ($ pathname); // ^ ------ Add one here
Comments
Post a Comment