Jump to content
php.lv forumi

mefisto

Reģistrētie lietotāji
  • Posts

    810
  • Joined

  • Last visited

Posts posted by mefisto

  1. if(@move_uploaded_file($_FILES[$upload_name]['tmp_name'], $target)){
        echo "There was a problem with the upload";
    }else {
        echo "Sorry, there was a problem uploading your file.";
    }

    Tāpēc ka te ir drukas kļuda , abi paziņojumi saka ka upload's nav izdevies.

  2. nevermind.

    Šitas variants nostrādāja:

     

    if(!function_exists('get_called_class')) {  
       class class_tools {  
           static $i = 0;  
           static $fl = null;  
    
           static function get_called_class() {  
               $bt = debug_backtrace();  
    
               if(self::$fl == $bt[2]['file'].$bt[2]['line']) {  
                   self::$i++;  
               } else {  
                   self::$i = 0;  
                   self::$fl = $bt[2]['file'].$bt[2]['line'];  
               }  
    
               $lines = file($bt[2]['file']);  
    
               preg_match_all(' 
                   /([a-zA-Z0-9\_]+)::'.$bt[2]['function'].'/',  
                   $lines[$bt[2]['line']-1],  
                   $matches  
               );  
    
               return $matches[1][self::$i];  
           }  
       }  
    
       function get_called_class() {  
           return class_tools::get_called_class();  
       }  
    } 
    

     

    Drošvien ka biju sapisies meistarībā.

  3. Emm .. <sup> un <sub> tagi apraksta formu nevis saturu.

    Un kāda jēga no tiem resetiem ? Katrai lapai tak ir citi tagi un vajadzības.

×
×
  • Create New...