Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在我的本地 XAMPP 设置中获取视频持续时间。我刚刚下载了 getID3 zip 并将其添加为:
include_once($base_url . '/getid3/getid3/getid3.php'); $getID3 = new getID3; $file = $getID3->analyze($filepath);
但它呈现以下错误:
Fatal error</b>: Class 'getID3' not found
我需要在 PHP 端启用任何库吗?
尝试这个。另外请检查类文件是否存在于那里......
<?php include_once(dirname(__FILE) . '/getid3/getid3/getid3.php'); $getID3 = new getID3; $file = $getID3->analyze($filepath); ?>