Exemplo n.º 1
0
 function signup()
 {
     // insert new user into table
     $db = new MyDB();
     if ($db->insertUser($this->name, $this->pwd)) {
         echo "Signup successfully!";
     } else {
         return;
     }
     $db->close();
     $dir = "./_resources/uploads/" . $this->getId();
     mkdir($dir, 0777);
     // create upload directory
 }