Jump to content

How can I add ID3 to presashop


Recommended Posts

Hi

 

I am trying to modify the mp3 tags using id3. I have added the code in GetFileController.php as follows:

 

equire_once('../getid3/getid3.php');
 
$getid3 = new getID3;
 
$getid3->encoding = 'UTF-8';
 
$data = array(
             "title" => "Re:Start",
             "artist" => "Re:\Legion",
             "comment" => "A nice track"
            );
id3_set_tag( $file, $data, ID3_V1_0 );
 
Now I have copied the getid3/getid3.php under controllers folder.
 
I get error saying:
 
PHP Fatal error:  require_once(): Failed opening required '../getid3/getid3.php' (include_path='/Applications/MAMP/htdocs/tools/htmlpurifier/standalone:.:/Applications/MAMP/bin/php/php5.6.7/lib/php') in /Applications/MAMP/htdocs/controllers/front/GetFileController.php on line 27
 
I am running this for now in my local machine with MAMP
 
 
 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...