PHP error

12/07/2013 16:14 flyghter#1
So guys what i want to ask you if there somone who know to solve this problem and help me.
I rly hope you guys can help me whit this problem
12/08/2013 13:41 adistoe#2
Can you show us the code of line 114?

-> Filname cannot be empty, have you given a filename?
12/09/2013 16:01 flyghter#3
Thx for answer but i manage to make it work ...:D
12/14/2013 22:34 flyghter#4
I manage to make it work but i still have the same error for some of this files
PHP Code:
function extract_skilllevel_bin($filename,$output){
  global 
$template            ;
  global 
$BinColumnDelimiter  ;
  global 
$BinLineEnd          ;
  
$decodedfilecontents  ""                    ;
  
$loops                0                     ;
  
$temp_template        $template             ;
  unset(
$temp_template['ID'])                   ;
  
$usedTemplate         $template             ;
  
$handle fopen($filename"r");
  if (
$handle) {
      foreach ( 
$template as $ColName=>$Endians$decodedfilecontents .= $ColName.$BinColumnDelimiter;
      
$decodedfilecontents .= $BinLineEnd;
      
      
      while (!
feof($handle)) {
        
$loops++;
        if ( 
$loops == 1)
          
$usedTemplate $template;
        else {
          
$usedTemplate $temp_template;
          
$decodedfilecontents .= '    '.$BinColumnDelimiter;
        }
        
$lastLine   '';

        foreach ( 
$usedTemplate as $ColName=>$Endians){
          if ( 
$loops == && $ColName=='szExplainFileName[128]' $Endians 129;
          
$hex  bin2hex(fread($handle,$Endians));
          if ( 
$Endians <= 4) {
            
$val hexdec(decodehex($hex));
            if ( 
$val == 4294967295  $val = -1;
            
$lastLine.= $val.$BinColumnDelimiter;
          } else {
            
$lastLine.= hex2str($hex).$BinColumnDelimiter;
          }
        }
        if ( ! 
feof($handle) ) $decodedfilecontents .= $lastLine.$BinLineEnd;
      }
    
fclose($handle);

     {  
      
$decodedfile fopen($output,'w+')          ;
      
fwrite($decodedfile,$decodedfilecontents)   ;
      
fclose($decodedfile)                        ;
    }
  }
  echo 
'<h1>'.$output.'</h1>';
  echo 
'<hr />';
  
print_r($decodedfilecontents);

soo i get error on line whit $handle = fopen($filename, "r"); if you can gyve me aiide abaut what can cause this problem
12/15/2013 00:02 dowhile#5
Considering the error message, the problem is probably caused by "$filename" being empty. How do you call the function?