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.

PHP Parse error: Syntax error, in unexpected T_ECHO /.../getDuration.php on line 17

My PHP-code:

  & 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;  

You have lost a semicolon at the end of this line

  $ ThisFileInfo = $ getID3- & gt; Analysis ($ pathname); // ^ ------ Add one here    

Comments

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -