Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4596010
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T23:03:18+00:00 2026-05-21T23:03:18+00:00

I am trying to use this class to extract the first 30 seconds for

  • 0

I am trying to use this class to extract the first 30 seconds for a preview. Here is my code

include("class.mp3.php");
$file_input = "hat.mp3";
$file_output = "output.mp3";
$mp3 = new mp3($file_input); 
$mp3_1 = $mp3->cut_mp3($file_input, $file_output, 0, 30);

hat.mp3 is in the same directory and I was expecting to see output.mp3 as the 30 second clip…any ideas what i am doing wrong of if there is an easier and better library to use for this case….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T23:03:19+00:00Added an answer on May 21, 2026 at 11:03 pm

    cut_mp3 function and other function get_mp3 etc uses ‘@’ operator:

     if(!$fp = @fopen($file_output, 'wb')) {
        return false;
     }
    

    And you will not see any error message. First of all check permission to directory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use the Win32_PerfRawData_PerfOS_Processor class on a windows server enterprise 2007
Trying to use this following script to load a page so that I can
I'm building a dynamic code generator and using regular expressions. Given this block of
I have one question, I have such code this._engine = Python.CreateEngine(); ScriptSource source =
I want to use imports inside a class that is then inherited by another
I'm trying to use double-checked locking to maintain an array of binomial coefficients, but
I am trying to port some C++ code from Windows to Solaris(Unix). There are
I`am trying to generate web service client through MyEclipse, using my wsdl. Ive got
What I'm trying to do is create a new custom data type that behaves
this is a bit of a newbie question but I can't seem to find

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.