Register for your free account! | Forgot your password?

You last visited: Today at 19:43

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



PHP error

Discussion on PHP error within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2011
Posts: 78
Received Thanks: 4
Question PHP error

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
Attached Images
File Type: jpg Untitled.jpg (13.6 KB, 53 views)
flyghter is offline  
Old 12/08/2013, 13:41   #2

 
adistoe's Avatar
 
elite*gold: 63
Join Date: Oct 2012
Posts: 1,181
Received Thanks: 139
Can you show us the code of line 114?

-> Filname cannot be empty, have you given a filename?
adistoe is offline  
Old 12/09/2013, 16:01   #3
 
elite*gold: 0
Join Date: Nov 2011
Posts: 78
Received Thanks: 4
Thx for answer but i manage to make it work ...
flyghter is offline  
Old 12/14/2013, 22:34   #4
 
elite*gold: 0
Join Date: Nov 2011
Posts: 78
Received Thanks: 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
flyghter is offline  
Old 12/15/2013, 00:02   #5
 
elite*gold: 0
Join Date: Jan 2012
Posts: 759
Received Thanks: 416
Considering the error message, the problem is probably caused by "$filename" being empty. How do you call the function?
dowhile is offline  
Reply


Similar Threads Similar Threads
[ENG] Error: Error 1 error C2601: 'HackMain' local function definitions are illegal
08/20/2013 - C/C++ - 1 Replies
So, as the title says I've been encountering an error Error 1 error C2601: 'HackMain' local function definitions are illegal I'm running on VC++ (Visual C++) This is my code: void HackMain() { for (;; ) { HackThread(); }
İbot Error-Error Video- Error İmages-HELP
04/10/2012 - DarkOrbit - 11 Replies
SORRY, MY ENGLİSH VERY BAD.I USE TO GOOGLE TRANSLATE :) Most people trying to ibot but in my computer İbot not working. Declared out this error everywhere but I do not get answers Here's the error Video http://youtu.be/q0fK09v-K3c
API Error Code: 100 API Error Description: Invalid parameter Error Message: redirect_
04/08/2012 - elite*gold Trading - 2 Replies
API Error Code: 100 API Error Description: Invalid parameter Error Message: redirect_uri URL is not properly formatted Das bekomme ich wenn ich ne App installiere... ich habe schon 3 Apps richtig installiert, danach kam immer das bei anderen Apps die ich installiert habe.. was heisst das? redirect_uri URL is not properly formatted



All times are GMT +1. The time now is 19:44.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.