Jump to content

sungpeng

Members
  • Posts

    290
  • Joined

  • Last visited

Posts posted by sungpeng

  1. $file = "$uid.php"; 
    $open = fopen($file, "w"); 
    fwrite($open, $content); 
    fclose($open); 
    }

     

    The above code is working fine. If I am putting it in the folder, how should i code ? Like the below which generate error message.

     

    $file = "/page/$uid.php"; 
    $open = fopen($file, "w"); 
    fwrite($open, $content); 
    fclose($open); 
    }

  2. <?php
    class MyClass{ 
    
        private $iLog = 'winning';      
    
        public function MyFunction($log){
    
            $this->iLog = $log; 
    
            return $this->iLog;
    
        }
    
    }
    MyClass=new MyClass;
    MyClass->MyFunction($log);
    ?>

     

    Don't work?

  3. <?php
    $storedvar['db_table_log']='winning';
    
    class Event1{
    
    
    function Event2(){
    global $storedvar;
    $this->log = $storedvar['db_table_log'];
        echo "$this->log";
    }
    }
    Event1=new Event1;
    Event1->Event2();
    ?>
    

     

    Can check with you how come this coding don't work?

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.