Please help me editing this mp3tag editor

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    help Please help me editing this mp3tag editor


    Anyone plz help me, i m having mp3 tag editor with all songs in one folder by just adding path, but currently facing problem that when i enter path for folder number 1 it edits tags as i want but when i give path of secong folder whos tag is to edit that time tags of 1 folder also get edited . Due to that site name in songs tag comes so many times in folder 1 and so on. So please i have posted index.php so edit in such a way that it shold edit tag of that folder only of which path has given.


    PHP Code:
    <html><head><title>Mp3 Tag Editor</title>

    <style>body {
    font: 12px Verdana, Arial, Helvetica, sans-serif;
    }
    input{
    border: 1px solid #b90000;
    margin: 1px;
    }</style>

    </head>
    <body>
    <?php
    $docroot 
    realpath((getenv('DOCUMENT_ROOT') && preg_match('#^'.preg_quote(realpath(getenv('DOCUMENT_ROOT'))).'#'realpath(__FILE__))) ? getenv('DOCUMENT_ROOT') : str_replace(dirname(@$_SERVER['PHP_SELF']), ''str_replace(DIRECTORY_SEPARATOR'/'dirname(__FILE__))));
    $basedir '/files/';       
    $go=$_REQUEST["go"];
    $dir realpath($docroot.'/'.$basedir);

    if(
    $go!="")
    {
    if(!
    is_dir($dir))
    print 
    "Folder Does not Exist<br>";
    else {
    require_once(
    '../mp/getid3/getid3.php');
    require_once(
    './func.php');
    require_once(
    './config.php');

            
            
            
    $ext=array();
            
    $scan=scanDirectories($dir);
            
            
    $total=count($scan);
            
    //print $total;
    for($i=0;$i<$total;$i++)
    {
    $Filename=$scan[$i];
    if(
    stristr($Filename,".mp3"))
    {print 
    $Filename.'<br>';
    changer($Filename,$img,$change,$replace);
    }
    //
                

    }
    }        
    }        
            
    ?><p>
        <b>Enter the path To edit tag</b>
        <p>
        <form align="center"><input type="text" name="dir"/><br/>
        <input type="submit" value="Go" name="go"/>
        </form>

        
        </p></p></body></html>

    #2
    $dir = realpath($docroot.'/'.$_REQUEST['dir']);

    Note to gumslone: underscore is not visible on line 16 of code

    Comment


    • GumSlone
      GumSlone commented
      Editing a comment
      is it due to font type? hmm i can see it

    #3
    after doing changes it shows folder not exists. So please tell me what should i do

    Comment


      #4
      Zong try:
      $dir = realpath($docroot.'/'.$basedir.'/'.$_REQUEST['dir']);

      Sorry im guessing as cant see your functions page


      Gum: chrome isn't rendering the page the same as your browser

      .bbcode_code{
      ​ line-height: 14px;
      }

      is causing the problems - i changed it to 15px and worked ok but might want to go to 16px to be on safe side


      Last edited by something else; 28.04.14, 02:17.

      Comment


        #5
        no same problem...folder does not exists

        Comment


          #6
          this is the entire script please edit and reply me. i m waiting

          Comment


            #7
            this is entire script plz edit it n reply

            Comment

            Working...
            X